vim-patch:7.4.721

Problem:    When 'list' is set Visual mode does not highlight anything in
            empty lines. (mgaleski)
Solution:   Check the value of lcs_eol in another place. (Christian Brabandt)

d59c099120
This commit is contained in:
Michael Ennen
2016-01-13 17:23:10 -07:00
parent 573d65c738
commit da9e519ba1
2 changed files with 5 additions and 4 deletions

View File

@@ -3459,7 +3459,7 @@ win_line (
c = ' ';
}
} else if (c == NUL
&& ((wp->w_p_list && lcs_eol > 0)
&& (wp->w_p_list
|| ((fromcol >= 0 || fromcol_prev >= 0)
&& tocol > vcol
&& VIsual_mode != Ctrl_V
@@ -3486,10 +3486,11 @@ win_line (
c_extra = NUL;
}
}
if (wp->w_p_list)
if (wp->w_p_list && lcs_eol > 0) {
c = lcs_eol;
else
} else {
c = ' ';
}
lcs_eol_one = -1;
--ptr; /* put it back at the NUL */
if (!attr_pri) {

View File

@@ -403,7 +403,7 @@ static int included_patches[] = {
// 724 NA
723,
// 722,
// 721,
721,
// 720 NA
719,
// 718,