diff options
author | Bram Moolenaar <bram@vim.org> | 2015-05-04 16:52:01 +0200 |
---|---|---|
committer | Bram Moolenaar <bram@vim.org> | 2015-05-04 16:52:01 +0200 |
commit | 6998879c6fc3571ff6fc27be60f693e634b0a951 (patch) | |
tree | a0f8c7ea30871d12a41711162791780de273cc34 | |
parent | 4de262a47376f38327ad097d1c817e0912926c94 (diff) | |
download | vim-6998879c6fc3571ff6fc27be60f693e634b0a951.tar.gz |
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)
-rw-r--r-- | src/screen.c | 4 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/screen.c b/src/screen.c index a0e9fc9f..e210ec8c 100644 --- a/src/screen.c +++ b/src/screen.c @@ -4703,7 +4703,7 @@ win_line(wp, lnum, startrow, endrow, nochange) } } 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 @@ -4749,7 +4749,7 @@ win_line(wp, lnum, startrow, endrow, nochange) c_extra = NUL; } } - if (wp->w_p_list) + if (wp->w_p_list && lcs_eol > 0) c = lcs_eol; else c = ' '; diff --git a/src/version.c b/src/version.c index 8e0edfbd..1be01349 100644 --- a/src/version.c +++ b/src/version.c @@ -742,6 +742,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 721, +/**/ 720, /**/ 719, |