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:
parent
bbbda8fd81
commit
693729ae58
@ -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',
|
||||
|
@ -699,6 +699,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
642,
|
||||
/**/
|
||||
641,
|
||||
/**/
|
||||
|
Loading…
x
Reference in New Issue
Block a user