diff options
author | Jurica Bradaric <jbradaric@gmail.com> | 2016-02-09 23:16:41 +0100 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2016-02-17 03:59:58 -0500 |
commit | 560a346d57f29ff549047b6d9e4434ddc6a3d0ed (patch) | |
tree | fd2562f40a93805426aab7dc777095fa7ed1304b /test/functional/legacy/comparators_spec.lua | |
parent | 5f54519b4f2e4768e2541be39f67a33331f98bc4 (diff) | |
download | rneovim-560a346d57f29ff549047b6d9e4434ddc6a3d0ed.tar.gz rneovim-560a346d57f29ff549047b6d9e4434ddc6a3d0ed.tar.bz2 rneovim-560a346d57f29ff549047b6d9e4434ddc6a3d0ed.zip |
vim-patch:7.4.844 #4228
Problem: When '#' is in 'isident' the is# comparator doesn't work.
Solution: Don't use vim_isIDc(). (Yasuhiro Matsumoto)
https://github.com/vim/vim/commit/37a8de17d4dfd3d463960c38a204ce399c8e19d4
Diffstat (limited to 'test/functional/legacy/comparators_spec.lua')
-rw-r--r-- | test/functional/legacy/comparators_spec.lua | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/functional/legacy/comparators_spec.lua b/test/functional/legacy/comparators_spec.lua new file mode 100644 index 0000000000..e3fa3eea23 --- /dev/null +++ b/test/functional/legacy/comparators_spec.lua @@ -0,0 +1,14 @@ +-- " Test for expression comparators. + +local helpers = require('test.functional.helpers') +local clear, eq = helpers.clear, helpers.eq +local eval, execute = helpers.eval, helpers.execute + +describe('comparators', function() + before_each(clear) + + it('is working', function() + execute('set isident+=#') + eq(1, eval('1 is#1')) + end) +end) |