]> granicus.if.org Git - vim/commitdiff
patch 7.4.2339 v7.4.2339
authorBram Moolenaar <Bram@vim.org>
Tue, 6 Sep 2016 19:33:52 +0000 (21:33 +0200)
committerBram Moolenaar <Bram@vim.org>
Tue, 6 Sep 2016 19:33:52 +0000 (21:33 +0200)
Problem:    Tab page test fails when run as fake root.
Solution:   Check 'buftype' instead of 'filetype'. (James McCoy, closes #1042)

src/testdir/test_tabpage.vim
src/version.c

index 0bf7d056de6bc123d55a67765f22b3bdd4928bda..4bee7956d71f97bc3fef0108412c969ea55aed14 100644 (file)
@@ -195,7 +195,7 @@ function Test_tabpage_with_tab_modifier()
     exec 'tabnext ' . a:pre_nr
     exec a:cmd
     call assert_equal(a:post_nr, tabpagenr())
-    call assert_equal('help', &filetype)
+    call assert_equal('help', &buftype)
     helpclose
   endfunc
 
index 79628cba7991a6b06465788cdff4fe56aa14d83d..9214ce7d57e194740ed711529c5d5669b703518e 100644 (file)
@@ -763,6 +763,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2339,
 /**/
     2338,
 /**/