Skip to content

Commit 100f5c9

Browse files
committed
patch 7.4.2339
Problem: Tab page test fails when run as fake root. Solution: Check 'buftype' instead of 'filetype'. (James McCoy, closes #1042)
1 parent 7947312 commit 100f5c9

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

src/testdir/test_tabpage.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ function Test_tabpage_with_tab_modifier()
195195
exec 'tabnext ' . a:pre_nr
196196
exec a:cmd
197197
call assert_equal(a:post_nr, tabpagenr())
198-
call assert_equal('help', &filetype)
198+
call assert_equal('help', &buftype)
199199
helpclose
200200
endfunc
201201

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+
2339,
766768
/**/
767769
2338,
768770
/**/

0 commit comments

Comments
 (0)