forked from neovim/neovim
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
vim-patch-8.0.0649 and vim-patch-8.0.0650: autocmd open help 2 times
- Loading branch information
1 parent
09b51bb
commit e913442
Showing
4 changed files
with
38 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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) |