summaryrefslogtreecommitdiffstats
path: root/src/indent.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2024-02-12 22:53:20 +0100
committerChristian Brabandt <cb@256bit.org>2024-02-12 22:53:20 +0100
commitf0a9d65e0a1d693cdfa964aa72de5b93b4cacdea (patch)
treea7bcca9cd0529aca96d62ff1b7bf8f96a00f11c3 /src/indent.c
parentb47fbb40837512cdd2d8c25eaf9952154836b99d (diff)
patch 9.1.0103: 'breakindentopt' "min" not correct with 'signcolumn'v9.1.0103
Problem: 'breakindentopt' "min" works incorrectly with 'signcolumn'. Solution: Use win_col_off() and win_col_off2(). (zeertzjq) closes: #14014 Signed-off-by: zeertzjq <zeertzjq@outlook.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
Diffstat (limited to 'src/indent.c')
-rw-r--r--src/indent.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/indent.c b/src/indent.c
index 34d31579bd..1087bad3ee 100644
--- a/src/indent.c
+++ b/src/indent.c
@@ -935,9 +935,7 @@ get_breakindent_win(
int bri = 0;
// window width minus window margin space, i.e. what rests for text
const int eff_wwidth = wp->w_width
- - ((wp->w_p_nu || wp->w_p_rnu)
- && (vim_strchr(p_cpo, CPO_NUMCOL) == NULL)
- ? number_width(wp) + 1 : 0);
+ - win_col_off(wp) + win_col_off2(wp);
// In list mode, if 'listchars' "tab" isn't set, a TAB is displayed as ^I.
int no_ts = wp->w_p_list && wp->w_lcs_chars.tab1 == NUL;