From 693729ae58bd30fc1a4c08042ebe9923b45f5763 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sun, 2 Oct 2022 22:10:25 +0100 Subject: [PATCH] patch 9.0.0642: breakindent test fails Problem: Breakindent test fails. Solution: Correct logic for resetting need_showbreak. --- src/drawline.c | 2 +- src/version.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/drawline.c b/src/drawline.c index ccfc8a49c..79ce5140e 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', diff --git a/src/version.c b/src/version.c index 09f4757dc..786a866bf 100644 --- a/src/version.c +++ b/src/version.c @@ -699,6 +699,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 642, /**/ 641, /**/ -- 2.40.0