]> granicus.if.org Git - vim/commitdiff
patch 7.4.2346 v7.4.2346
authorBram Moolenaar <Bram@vim.org>
Thu, 8 Sep 2016 20:10:06 +0000 (22:10 +0200)
committerBram Moolenaar <Bram@vim.org>
Thu, 8 Sep 2016 20:10:06 +0000 (22:10 +0200)
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.

src/testdir/test_autocmd.vim
src/version.c

index 85233797d39ae435ca9edec520d69eaa412d94a1..5402fc665e44e354792919791623099816735d72 100644 (file)
@@ -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)
index fac99acf23986c62747004d9ed5cb37e75f357a4..55f8541098878234e71f6bd3b88434e9982d0c74 100644 (file)
@@ -763,6 +763,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2346,
 /**/
     2345,
 /**/