Skip to content

Commit f18c4db

Browse files
committed
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.
1 parent 0eaadec commit f18c4db

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

src/testdir/test_autocmd.vim

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ if has('timers')
1313
endfunc
1414

1515
func Test_cursorhold_insert()
16+
" Need to move the cursor.
17+
call feedkeys("ggG", "xt")
18+
1619
let g:triggered = 0
1720
au CursorHoldI * let g:triggered += 1
1821
set updatetime=20
@@ -93,6 +96,7 @@ function Test_autocmd_bufwinleave_with_tabfirst()
9396
augroup END
9497
call setline(1, ['a', 'b', 'c'])
9598
edit! a.txt
99+
tabclose
96100
endfunc
97101

98102
" SEGV occurs in older versions. (At least 7.4.2321 or older)

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -763,6 +763,8 @@ static char *(features[]) =
763763

764764
static int included_patches[] =
765765
{ /* Add new patch number below this line */
766+
/**/
767+
2346,
766768
/**/
767769
2345,
768770
/**/

0 commit comments

Comments
 (0)