diff options
author | zeertzjq <zeertzjq@outlook.com> | 2024-08-10 16:05:30 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-10 08:05:30 +0000 |
commit | 0ec43cb4b56673d661d6bd1e39836d0a891be5cd (patch) | |
tree | ebc5c29b6d8188524980ae5141c5cbf8d2b76bdf /src/nvim/options.lua | |
parent | 4e8efe002e976de1a22dcce6a1e800aeb6acad70 (diff) | |
download | rneovim-0ec43cb4b56673d661d6bd1e39836d0a891be5cd.tar.gz rneovim-0ec43cb4b56673d661d6bd1e39836d0a891be5cd.tar.bz2 rneovim-0ec43cb4b56673d661d6bd1e39836d0a891be5cd.zip |
vim-patch:9.1.0667: Some other options reset curswant unnecessarily when set (#30020)
Problem: Some other options reset curswant unnecessarily when set.
(Andrew Haust)
Solution: Don't reset curswant when setting 'comments', 'commentstring'
or 'define' (zeertzjq)
fixes: vim/vim#15462
closes: vim/vim#15467
https://github.com/vim/vim/commit/b026a293b1e9d7a30f7717e256fe5f7f1dfa20d7
Diffstat (limited to 'src/nvim/options.lua')
-rw-r--r-- | src/nvim/options.lua | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/nvim/options.lua b/src/nvim/options.lua index 8506d0998a..ef7cc2fb89 100644 --- a/src/nvim/options.lua +++ b/src/nvim/options.lua @@ -1321,7 +1321,6 @@ return { ]=], full_name = 'comments', list = 'onecomma', - redraw = { 'curswant' }, scope = { 'buffer' }, short_desc = N_('patterns that can start a comment line'), tags = { 'E524', 'E525' }, @@ -1339,7 +1338,6 @@ return { Used for |commenting| and to add markers for folding, see |fold-marker|. ]=], full_name = 'commentstring', - redraw = { 'curswant' }, scope = { 'buffer' }, short_desc = N_('template for comments; used for fold marker'), tags = { 'E537' }, @@ -1975,7 +1973,6 @@ return { < ]=], full_name = 'define', - redraw = { 'curswant' }, scope = { 'global', 'buffer' }, short_desc = N_('pattern to be used to find a macro definition'), type = 'string', |