diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2016-01-10 01:33:05 -0500 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2016-01-10 01:33:05 -0500 |
commit | 9bf694ff0bd6a4251758524f762847208618c8f3 (patch) | |
tree | 3e97b13c44361ef74f02fa18ffe8c9fea2f9a690 /test/functional/legacy/100_lispwords_spec.lua | |
parent | 50db0312f941ba489466d7d6b21088f1870429ee (diff) | |
parent | f350655ddd3846f7c1e12a21fcb30d49f90fa6b6 (diff) | |
download | rneovim-9bf694ff0bd6a4251758524f762847208618c8f3.tar.gz rneovim-9bf694ff0bd6a4251758524f762847208618c8f3.tar.bz2 rneovim-9bf694ff0bd6a4251758524f762847208618c8f3.zip |
Merge #3857 'Vim 7.4.{944,945,946,950,953,1032,1055}'.
Diffstat (limited to 'test/functional/legacy/100_lispwords_spec.lua')
-rw-r--r-- | test/functional/legacy/100_lispwords_spec.lua | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/test/functional/legacy/100_lispwords_spec.lua b/test/functional/legacy/100_lispwords_spec.lua new file mode 100644 index 0000000000..ba2d485280 --- /dev/null +++ b/test/functional/legacy/100_lispwords_spec.lua @@ -0,0 +1,47 @@ +-- Tests for 'lispwords' setting being global-local + +local helpers = require('test.functional.helpers') +local source = helpers.source +local clear, expect = helpers.clear, helpers.expect + +describe('undolevel', function() + setup(clear) + + it('is working', function() + source([[ + setglobal lispwords=foo,bar,baz + setlocal lispwords-=foo + setlocal lispwords+=quux + redir @A + echo "Testing 'lispwords' local value" + setglobal lispwords? + setlocal lispwords? + echo &lispwords + echo '' + redir end + setlocal lispwords< + redir @A + echo "Testing 'lispwords' value reset" + setglobal lispwords? + setlocal lispwords? + echo &lispwords + redir end + + 0put a + $d + ]]) + + -- Assert buffer contents. + expect([[ + + Testing 'lispwords' local value + lispwords=foo,bar,baz + lispwords=bar,baz,quux + bar,baz,quux + + Testing 'lispwords' value reset + lispwords=foo,bar,baz + lispwords=foo,bar,baz + foo,bar,baz]]) + end) +end) |