aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2016-05-21 00:05:37 -0400
committerJustin M. Keyes <justinkz@gmail.com>2016-05-21 00:05:37 -0400
commit8e20ba9fbd691955fa20bdba3dd5ff66d16f923c (patch)
treec2cbd4dcbff0040d77ba1c1a6577f6947fccd9e9 /test
parent9d3449852bd35c9283948186d0259c1bf73b8579 (diff)
parent853440053c3495958644cb6deabde733ede5dd56 (diff)
downloadrneovim-8e20ba9fbd691955fa20bdba3dd5ff66d16f923c.tar.gz
rneovim-8e20ba9fbd691955fa20bdba3dd5ff66d16f923c.tar.bz2
rneovim-8e20ba9fbd691955fa20bdba3dd5ff66d16f923c.zip
Merge pull request #4737 from jamessan/vim-7.4.1017
https://github.com/neovim/neovim/pull/4789C] vim-patch:7.4.1017,7.4.1018,7.4.1034
Diffstat (limited to 'test')
-rw-r--r--test/functional/legacy/set_spec.lua15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/functional/legacy/set_spec.lua b/test/functional/legacy/set_spec.lua
index f81fcd3700..f2c907084e 100644
--- a/test/functional/legacy/set_spec.lua
+++ b/test/functional/legacy/set_spec.lua
@@ -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')