From: Bram Moolenaar Date: Thu, 8 Sep 2016 20:10:06 +0000 (+0200) Subject: patch 7.4.2346 X-Git-Tag: v7.4.2346 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f18c4dbbe545757ce93563b25380e6f010340b4e;p=vim 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 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) diff --git a/src/version.c b/src/version.c index fac99acf2..55f854109 100644 --- a/src/version.c +++ b/src/version.c @@ -763,6 +763,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 2346, /**/ 2345, /**/