commit 7cc3062e9c13ea13986654119278997d8971baec
parent be11f80d018797b514ed7d01cde2e4c8f88cc8d2
Author: Luuk van Baal <luukvbaal@gmail.com>
Date: Wed, 26 Apr 2023 03:45:10 +0200
vim-patch:9.0.0642: breakindent test fails
Problem: Breakindent test fails.
Solution: Correct logic for resetting need_showbreak.
https://github.com/vim/vim/commit/693729ae58bd30fc1a4c08042ebe9923b45f5763
Co-authored-by: Bram Moolenaar <Bram@vim.org>
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/nvim/drawline.c b/src/nvim/drawline.c
@@ -804,7 +804,7 @@ static void handle_showbreak_and_filler(win_T *wp, winlinevars_T *wlv)
wlv->c_final = NUL;
wlv->n_extra = (int)strlen(sbr);
wlv->char_attr = win_hl_attr(wp, HLF_AT);
- 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);