mirror of
https://github.com/neovim/neovim.git
synced 2025-09-08 20:38:18 +00:00

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
16 lines
397 B
Lua
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)
|