diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2018-02-17 12:09:44 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-17 12:09:44 +0100 |
commit | 8b543d09d834994f7e696716ce8c146ab0652011 (patch) | |
tree | c768daf477d4ef3c44f23ebdb8154af10002f206 /test | |
parent | 2f018b1833247aea885ad01d6ac7a6649254b9ac (diff) | |
parent | e9134421ab8f72393d469d9d7793d4a75984cb93 (diff) | |
download | rneovim-8b543d09d834994f7e696716ce8c146ab0652011.tar.gz rneovim-8b543d09d834994f7e696716ce8c146ab0652011.tar.bz2 rneovim-8b543d09d834994f7e696716ce8c146ab0652011.zip |
Merge pull request #8011 from nimitbhardwaj/vim-8.0.0649
vim-patch:8.0.0649 and vim-patch:8.0.0650
Diffstat (limited to 'test')
-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) |