summaryrefslogtreecommitdiffstats
path: root/src/drawline.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-10-02 22:10:25 +0100
committerBram Moolenaar <Bram@vim.org>2022-10-02 22:10:25 +0100
commit693729ae58bd30fc1a4c08042ebe9923b45f5763 (patch)
tree1e2464fe09e4be8d83647fbfc87f6ebfc9f83563 /src/drawline.c
parentbbbda8fd81f6d720962b67ae885825bad9be4456 (diff)
patch 9.0.0642: breakindent test failsv9.0.0642
Problem: Breakindent test fails. Solution: Correct logic for resetting need_showbreak.
Diffstat (limited to 'src/drawline.c')
-rw-r--r--src/drawline.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drawline.c b/src/drawline.c
index ccfc8a49c1..79ce5140e9 100644
--- a/src/drawline.c
+++ b/src/drawline.c
@@ -541,7 +541,7 @@ handle_showbreak_and_filler(win_T *wp, winlinevars_T *wlv)
wlv->c_extra = NUL;
wlv->c_final = NUL;
wlv->n_extra = (int)STRLEN(sbr);
- if ((wp->w_skipcol == 0 && wlv->startrow == 0) || !wp->w_p_wrap)
+ if (wp->w_skipcol == 0 || wlv->startrow != 0 || !wp->w_p_wrap)
wlv->need_showbreak = FALSE;
wlv->vcol_sbr = wlv->vcol + MB_CHARLEN(sbr);
// Correct end of highlighted area for 'showbreak',