]> granicus.if.org Git - vim/commitdiff
patch 8.1.0546: modeline test with keymap fails v8.1.0546
authorBram Moolenaar <Bram@vim.org>
Sun, 25 Nov 2018 03:25:58 +0000 (04:25 +0100)
committerBram Moolenaar <Bram@vim.org>
Sun, 25 Nov 2018 03:25:58 +0000 (04:25 +0100)
Problem:    Modeline test with keymap fails.
Solution:   Check that the keymap feature is available.

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

index c1eb99153cfec7b54d6c6ca94c026f7f0e976446..d29bbb50ba4e14939da17f9eb00f027231da7fdc 100644 (file)
@@ -44,6 +44,9 @@ func Test_modeline_syntax()
 endfunc
 
 func Test_modeline_keymap()
+  if !has('keymap')
+    return
+  endif
   call writefile(['vim: set keymap=greek :', 'nothing'], 'Xmodeline_keymap')
   let modeline = &modeline
   set modeline
index 42ce472dc5583a8b5a8ddf7bca44fd7261e777ac..ce8595e3c070160f7d359ac9b575fd3db1506aee 100644 (file)
@@ -792,6 +792,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    546,
 /**/
     545,
 /**/