]> granicus.if.org Git - vim/commitdiff
patch 8.2.1940: Vim9: browse modifier test fails on Mac v8.2.1940
authorBram Moolenaar <Bram@vim.org>
Sun, 1 Nov 2020 21:15:44 +0000 (22:15 +0100)
committerBram Moolenaar <Bram@vim.org>
Sun, 1 Nov 2020 21:15:44 +0000 (22:15 +0100)
Problem:    Vim9: browse modifier test fails on Mac.
Solution:   Only test when the +browse feature is available.

src/testdir/test_vim9_cmd.vim
src/version.c

index a87d9b25a8b35d10ace98d9a558245cb8df9e7fe..dc4dc76ba3f9c9dcd7babe3b82db0da5bc2fd6fb 100644 (file)
@@ -347,9 +347,11 @@ def Test_win_command_modifiers()
   assert_equal(2, winnr())
   close
 
-  browse set
-  assert_equal('option-window', expand('%'))
-  close
+  if has('browse')
+    browse set
+    assert_equal('option-window', expand('%'))
+    close
+  endif
 
   vsplit
   botright split
index b4ef5a98373ae23e0b72d43bebe664cb57a477fb..42830bc53f9a932e63af24895260d7382bbc578f 100644 (file)
@@ -750,6 +750,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1940,
 /**/
     1939,
 /**/