aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Ennen <mike.ennen@gmail.com>2016-01-13 17:23:10 -0700
committerMichael Ennen <mike.ennen@gmail.com>2016-01-13 18:19:13 -0700
commitda9e519ba1956ca4aac887c000134017ff2d243b (patch)
treefee8acb541bf877bd0bd5fb28a80fcffeaa4a91a
parent573d65c738dd2e5f4ee92a7f20946411206021f7 (diff)
downloadrneovim-da9e519ba1956ca4aac887c000134017ff2d243b.tar.gz
rneovim-da9e519ba1956ca4aac887c000134017ff2d243b.tar.bz2
rneovim-da9e519ba1956ca4aac887c000134017ff2d243b.zip
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) https://github.com/vim/vim/commit/d59c099120919d2d77b431308e390f86c594c825
-rw-r--r--src/nvim/screen.c7
-rw-r--r--src/nvim/version.c2
2 files changed, 5 insertions, 4 deletions
diff --git a/src/nvim/screen.c b/src/nvim/screen.c
index 977dd5b2d4..1ae2822a93 100644
--- a/src/nvim/screen.c
+++ b/src/nvim/screen.c
@@ -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) {
diff --git a/src/nvim/version.c b/src/nvim/version.c
index 804f750e18..da3ee09429 100644
--- a/src/nvim/version.c
+++ b/src/nvim/version.c
@@ -403,7 +403,7 @@ static int included_patches[] = {
// 724 NA
723,
// 722,
- // 721,
+ 721,
// 720 NA
719,
// 718,