]> granicus.if.org Git - vim/commitdiff
patch 8.1.0547: modeline test with keymap still fails v8.1.0547
authorBram Moolenaar <Bram@vim.org>
Sun, 25 Nov 2018 04:06:48 +0000 (05:06 +0100)
committerBram Moolenaar <Bram@vim.org>
Sun, 25 Nov 2018 04:06:48 +0000 (05:06 +0100)
Problem:    Modeline test with keymap still fails.
Solution:   Check that the keymap feature is available for the failure assert.

src/testdir/test_modeline.vim
src/version.c

index d29bbb50ba4e14939da17f9eb00f027231da7fdc..e0f97c4433d6a63c0c1c615697286c74deb8bd0b 100644 (file)
@@ -87,5 +87,8 @@ func Test_modeline_syntax_fails()
 endfunc
 
 func Test_modeline_keymap_fails()
+  if !has('keymap')
+    return
+  endif
   call s:modeline_fails('keymap', 'keymap=evil$CMD')
 endfunc
index ce8595e3c070160f7d359ac9b575fd3db1506aee..3207af3b4e9d6da04d140d0e4a9f9f844649de27 100644 (file)
@@ -792,6 +792,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    547,
 /**/
     546,
 /**/