aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/option.c
diff options
context:
space:
mode:
authorDaniel Hahler <git@thequod.de>2019-09-26 09:15:21 +0200
committerDaniel Hahler <git@thequod.de>2019-10-04 08:48:57 +0200
commita341eb608706e5e8ac691a7e8f4a9d314bafee20 (patch)
tree2a18de092fab445c378ce157962f6a41c65386f1 /src/nvim/option.c
parentcd73a0342a457c035b84e4406428ac30b30bf754 (diff)
downloadrneovim-a341eb608706e5e8ac691a7e8f4a9d314bafee20.tar.gz
rneovim-a341eb608706e5e8ac691a7e8f4a9d314bafee20.tar.bz2
rneovim-a341eb608706e5e8ac691a7e8f4a9d314bafee20.zip
win_line: update `w_last_cursorline` always
Vim patch 8.1.0856 (54d9ea6) caused a performance regression in Neovim, when `set conceallevel=1 nocursorline` was used, since then due to refactoring in 23c71d5 `w_last_cursorline` would never get updated anymore. Adds/uses `redrawdebug+=nodelta` for testing this. Fixes https://github.com/neovim/neovim/issues/11100. Closes https://github.com/neovim/neovim/pull/11101.
Diffstat (limited to 'src/nvim/option.c')
-rw-r--r--src/nvim/option.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nvim/option.c b/src/nvim/option.c
index 3ccc67eb14..22f7b85133 100644
--- a/src/nvim/option.c
+++ b/src/nvim/option.c
@@ -4306,6 +4306,10 @@ static char *set_num_option(int opt_idx, char_u *varp, long value,
if (value < 0) {
errmsg = e_positive;
}
+ } else if (pp == &p_wd) {
+ if (value < 0) {
+ errmsg = e_positive;
+ }
}
// Don't change the value and return early if validation failed.