Files
neovim/test/functional/legacy/set_spec.lua
Jurica Bradaric 59ef994f8f vim-patch:7.4.741 #4121
Problem:    When using += with ":set" a trailing comma is not recognized.
            (Issue 365)
Solution:   Don't add a second comma. Add a test. (partly by Christian
            Brabandt)

a7b7b1cef9
2016-02-01 02:28:51 -05:00

16 lines
397 B
Lua

-- Tests for :set
local helpers = require('test.functional.helpers')
local clear, execute, eval, eq =
helpers.clear, helpers.execute, helpers.eval, helpers.eq
describe(':set', function()
before_each(clear)
it('recognizes a trailing comma with +=', function()
execute('set wildignore=*.png,')
execute('set wildignore+=*.jpg')
eq('*.png,*.jpg', eval('&wildignore'))
end)
end)