diff options
author | Daniel Hahler <git@thequod.de> | 2017-01-12 22:20:44 +0100 |
---|---|---|
committer | Daniel Hahler <git@thequod.de> | 2017-01-13 23:40:59 +0100 |
commit | a0b33b333ee46b87d62ab1a8d8d515e83fbbe635 (patch) | |
tree | 38348827c773a2372629cbdacd20bfffaf8982b2 /src/nvim/option.c | |
parent | f68663542037aaa4ae954aacae7adf2e88b151d5 (diff) | |
download | rneovim-a0b33b333ee46b87d62ab1a8d8d515e83fbbe635.tar.gz rneovim-a0b33b333ee46b87d62ab1a8d8d515e83fbbe635.tar.bz2 rneovim-a0b33b333ee46b87d62ab1a8d8d515e83fbbe635.zip |
vim-patch:8.0.0121
Problem: Setting 'cursorline' changes the curswant column. (Daniel Hahler)
Solution: Add the P_RWINONLY flag. (closes vim/vim#1297)
https://github.com/vim/vim/commit/a2477fd3490c1166522631eee53c57d34321086a
Diffstat (limited to 'src/nvim/option.c')
-rw-r--r-- | src/nvim/option.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nvim/option.c b/src/nvim/option.c index 52a8b19ca4..ee0ee143f6 100644 --- a/src/nvim/option.c +++ b/src/nvim/option.c @@ -238,6 +238,8 @@ typedef struct vimoption { ///< when there is a redraw flag #define P_NO_DEF_EXP 0x8000000U ///< Do not expand default value. +#define P_RWINONLY 0x10000000U ///< only redraw current window + #define HIGHLIGHT_INIT \ "8:SpecialKey,~:EndOfBuffer,z:TermCursor,Z:TermCursorNC,@:NonText," \ "d:Directory,e:ErrorMsg,i:IncSearch,l:Search,m:MoreMsg,M:ModeMsg,n:LineNr," \ @@ -4364,6 +4366,8 @@ static void check_redraw(uint32_t flags) changed_window_setting(); if (flags & P_RBUF) redraw_curbuf_later(NOT_VALID); + if (flags & P_RWINONLY) + redraw_later(NOT_VALID); if (doclear) redraw_all_later(CLEAR); else if (all) |