summaryrefslogtreecommitdiff
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
parentbbbda8fd81f6d720962b67ae885825bad9be4456 (diff)
downloadvim-git-693729ae58bd30fc1a4c08042ebe9923b45f5763.tar.gz
patch 9.0.0642: breakindent test failsv9.0.0642
Problem: Breakindent test fails. Solution: Correct logic for resetting need_showbreak.
-rw-r--r--src/drawline.c2
-rw-r--r--src/version.c2
2 files changed, 3 insertions, 1 deletions
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
@@ -700,6 +700,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 642,
+/**/
641,
/**/
640,