mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 11:28:22 +00:00
Merge pull request #30021 from neovim/backport-30020-to-release-0.10
vim-patch:9.1.0667: Some other options reset curswant unnecessarily when set
This commit is contained in:
@@ -1310,7 +1310,6 @@ return {
|
|||||||
]=],
|
]=],
|
||||||
full_name = 'comments',
|
full_name = 'comments',
|
||||||
list = 'onecomma',
|
list = 'onecomma',
|
||||||
redraw = { 'curswant' },
|
|
||||||
scope = { 'buffer' },
|
scope = { 'buffer' },
|
||||||
short_desc = N_('patterns that can start a comment line'),
|
short_desc = N_('patterns that can start a comment line'),
|
||||||
tags = { 'E524', 'E525' },
|
tags = { 'E524', 'E525' },
|
||||||
@@ -1328,7 +1327,6 @@ return {
|
|||||||
add markers for folding, see |fold-marker|.
|
add markers for folding, see |fold-marker|.
|
||||||
]=],
|
]=],
|
||||||
full_name = 'commentstring',
|
full_name = 'commentstring',
|
||||||
redraw = { 'curswant' },
|
|
||||||
scope = { 'buffer' },
|
scope = { 'buffer' },
|
||||||
short_desc = N_('template for comments; used for fold marker'),
|
short_desc = N_('template for comments; used for fold marker'),
|
||||||
tags = { 'E537' },
|
tags = { 'E537' },
|
||||||
@@ -1956,7 +1954,6 @@ return {
|
|||||||
<
|
<
|
||||||
]=],
|
]=],
|
||||||
full_name = 'define',
|
full_name = 'define',
|
||||||
redraw = { 'curswant' },
|
|
||||||
scope = { 'global', 'buffer' },
|
scope = { 'global', 'buffer' },
|
||||||
short_desc = N_('pattern to be used to find a macro definition'),
|
short_desc = N_('pattern to be used to find a macro definition'),
|
||||||
type = 'string',
|
type = 'string',
|
||||||
|
@@ -322,6 +322,7 @@ func Test_set_options_keep_col()
|
|||||||
normal j
|
normal j
|
||||||
set invhlsearch spell spelllang=en,cjk spelloptions=camel textwidth=80
|
set invhlsearch spell spelllang=en,cjk spelloptions=camel textwidth=80
|
||||||
set cursorline cursorcolumn cursorlineopt=line colorcolumn=+1 winfixbuf
|
set cursorline cursorcolumn cursorlineopt=line colorcolumn=+1 winfixbuf
|
||||||
|
set comments=:# commentstring=#%s define=function
|
||||||
set background=dark
|
set background=dark
|
||||||
set background=light
|
set background=light
|
||||||
normal k
|
normal k
|
||||||
@@ -329,6 +330,7 @@ func Test_set_options_keep_col()
|
|||||||
bwipe!
|
bwipe!
|
||||||
set hlsearch& spell& spelllang& spelloptions& textwidth&
|
set hlsearch& spell& spelllang& spelloptions& textwidth&
|
||||||
set cursorline& cursorcolumn& cursorlineopt& colorcolumn& winfixbuf&
|
set cursorline& cursorcolumn& cursorlineopt& colorcolumn& winfixbuf&
|
||||||
|
set comments& commentstring& define&
|
||||||
set background&
|
set background&
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user