# HG changeset patch # User Christian Brabandt # Date 1473365706 -7200 # Node ID 0be17a56e65fc7ce2b101b109cccef5f3efbbf36 # Parent 9b5a9abf136d0007c4430348cc1f7659ef4c7c63 commit https://github.com/vim/vim/commit/f18c4dbbe545757ce93563b25380e6f010340b4e Author: Bram Moolenaar Date: Thu Sep 8 22:10:06 2016 +0200 patch 7.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. diff --git a/src/testdir/test_autocmd.vim b/src/testdir/test_autocmd.vim --- 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_t 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) diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -764,6 +764,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 2346, +/**/ 2345, /**/ 2344,