mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
vim-patch:7.4.1017
Problem: When there is a backslash in an option ":set -=" doesn't work.
Solution: Handle a backslash better. (Jacob Niehus) Add a new test, merge
in old test.
8f79acdf7e
This commit is contained in:
@@ -7,6 +7,21 @@ local clear, execute, eval, eq =
|
||||
describe(':set', function()
|
||||
before_each(clear)
|
||||
|
||||
it('handles backslash properly', function()
|
||||
execute('set iskeyword=a,b,c')
|
||||
execute('set iskeyword+=d')
|
||||
eq('a,b,c,d', eval('&iskeyword'))
|
||||
|
||||
execute([[set iskeyword+=\\,e]])
|
||||
eq([[a,b,c,d,\,e]], eval('&iskeyword'))
|
||||
|
||||
execute('set iskeyword-=e')
|
||||
eq([[a,b,c,d,\]], eval('&iskeyword'))
|
||||
|
||||
execute([[set iskeyword-=\]])
|
||||
eq('a,b,c,d', eval('&iskeyword'))
|
||||
end)
|
||||
|
||||
it('recognizes a trailing comma with +=', function()
|
||||
execute('set wildignore=*.png,')
|
||||
execute('set wildignore+=*.jpg')
|
||||
|
||||
Reference in New Issue
Block a user