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 /test | |
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 'test')
-rw-r--r-- | test/old/testdir/test_goto.vim | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/old/testdir/test_goto.vim b/test/old/testdir/test_goto.vim index 8813bcbacd..b6a6695d17 100644 --- a/test/old/testdir/test_goto.vim +++ b/test/old/testdir/test_goto.vim @@ -322,6 +322,7 @@ func Test_set_options_keep_col() normal j set invhlsearch spell spelllang=en,cjk spelloptions=camel textwidth=80 set cursorline cursorcolumn cursorlineopt=line colorcolumn=+1 winfixbuf + set comments=:# commentstring=#%s define=function set background=dark set background=light normal k @@ -329,6 +330,7 @@ func Test_set_options_keep_col() bwipe! set hlsearch& spell& spelllang& spelloptions& textwidth& set cursorline& cursorcolumn& cursorlineopt& colorcolumn& winfixbuf& + set comments& commentstring& define& set background& endfunc |