diff options
author | Nimit Bhardwaj <nimitbhardwaj@gmail.com> | 2018-02-14 19:48:01 +0530 |
---|---|---|
committer | Nimit Bhardwaj <nimitbhardwaj@gmail.com> | 2018-02-17 00:02:16 +0530 |
commit | e9134421ab8f72393d469d9d7793d4a75984cb93 (patch) | |
tree | 23570022ea0b899d2360e602937b22c4ad15095b /test/functional | |
parent | 09b51bbf87b16af9a186cea750ada748d89aa259 (diff) | |
download | rneovim-e9134421ab8f72393d469d9d7793d4a75984cb93.tar.gz rneovim-e9134421ab8f72393d469d9d7793d4a75984cb93.tar.bz2 rneovim-e9134421ab8f72393d469d9d7793d4a75984cb93.zip |
vim-patch-8.0.0649 and vim-patch-8.0.0650: autocmd open help 2 times
Diffstat (limited to 'test/functional')
-rw-r--r-- | test/functional/autocmd/filetype_spec.lua | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/functional/autocmd/filetype_spec.lua b/test/functional/autocmd/filetype_spec.lua new file mode 100644 index 0000000000..e6fa7ab6bb --- /dev/null +++ b/test/functional/autocmd/filetype_spec.lua @@ -0,0 +1,16 @@ +local helpers = require('test.functional.helpers')(after_each) + +local eval = helpers.eval +local clear = helpers.clear +local command = helpers.command + +describe('autocmd FileType', function() + before_each(clear) + + it("is triggered by :help only once", function() + command("let g:foo = 0") + command("autocmd FileType help let g:foo = g:foo + 1") + command("help help") + assert.same(1, eval('g:foo')) + end) +end) |