diff options
author | Bram Moolenaar <Bram@vim.org> | 2016-09-08 22:10:06 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2016-09-08 22:10:06 +0200 |
commit | f18c4dbbe545757ce93563b25380e6f010340b4e (patch) | |
tree | 458257dbf712b39892f42a0d4ebd8581224d886b /src/testdir | |
parent | 0eaadec6b275a8add49242e1940855fcd154ba64 (diff) | |
download | vim-git-f18c4dbbe545757ce93563b25380e6f010340b4e.tar.gz |
patch 7.4.2346v7.4.2346
Problem: Autocommand test fails when run directly, passes when run as part
of test_alot.
Solution: Add command to make the cursor move. Close a tab page.
Diffstat (limited to 'src/testdir')
-rw-r--r-- | src/testdir/test_autocmd.vim | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/testdir/test_autocmd.vim b/src/testdir/test_autocmd.vim index 85233797d..5402fc665 100644 --- a/src/testdir/test_autocmd.vim +++ b/src/testdir/test_autocmd.vim @@ -13,6 +13,9 @@ if has('timers') endfunc func Test_cursorhold_insert() + " Need to move the cursor. + call feedkeys("ggG", "xt") + let g:triggered = 0 au CursorHoldI * let g:triggered += 1 set updatetime=20 @@ -93,6 +96,7 @@ function Test_autocmd_bufwinleave_with_tabfirst() augroup END call setline(1, ['a', 'b', 'c']) edit! a.txt + tabclose endfunc " SEGV occurs in older versions. (At least 7.4.2321 or older) |