diff options
author | Jurica Bradaric <jbradaric@gmail.com> | 2016-01-28 19:28:15 +0100 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2016-02-01 02:28:51 -0500 |
commit | 59ef994f8f5fad9aaaa0e1d6eae3af66f6bb2630 (patch) | |
tree | 038fd5dc7cef8d4e48ead63c84208f42eb075b83 /test/functional/legacy/set_spec.lua | |
parent | 99067b7e56e0a873bcf333048ed0ba17280957be (diff) | |
download | rneovim-59ef994f8f5fad9aaaa0e1d6eae3af66f6bb2630.tar.gz rneovim-59ef994f8f5fad9aaaa0e1d6eae3af66f6bb2630.tar.bz2 rneovim-59ef994f8f5fad9aaaa0e1d6eae3af66f6bb2630.zip |
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)
https://github.com/vim/vim/commit/a7b7b1cef9b61700ba5076c1d889dce791392388
Diffstat (limited to 'test/functional/legacy/set_spec.lua')
-rw-r--r-- | test/functional/legacy/set_spec.lua | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/functional/legacy/set_spec.lua b/test/functional/legacy/set_spec.lua new file mode 100644 index 0000000000..f81fcd3700 --- /dev/null +++ b/test/functional/legacy/set_spec.lua @@ -0,0 +1,15 @@ +-- 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) |