1
0
forked from aniani/vim

patch 9.0.0642: breakindent test fails

Problem:    Breakindent test fails.
Solution:   Correct logic for resetting need_showbreak.
This commit is contained in:
Bram Moolenaar 2022-10-02 22:10:25 +01:00
parent bbbda8fd81
commit 693729ae58
2 changed files with 3 additions and 1 deletions

View File

@ -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',

View File

@ -699,6 +699,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
642,
/**/
641,
/**/