changeset 10151:0be17a56e65f v7.4.2346

commit https://github.com/vim/vim/commit/f18c4dbbe545757ce93563b25380e6f010340b4e Author: Bram Moolenaar <Bram@vim.org> 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.
author Christian Brabandt <cb@256bit.org>
date Thu, 08 Sep 2016 22:15:06 +0200
parents 9b5a9abf136d
children f0a07ec845cf
files src/testdir/test_autocmd.vim src/version.c
diffstat 2 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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)
--- 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,