changeset 15071:aabaf1499d05 v8.1.0546

patch 8.1.0546: modeline test with keymap fails commit https://github.com/vim/vim/commit/4ace6ab7e72151d78f1563b23b498ed20fa00211 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Nov 25 04:25:58 2018 +0100 patch 8.1.0546: modeline test with keymap fails Problem: Modeline test with keymap fails. Solution: Check that the keymap feature is available.
author Bram Moolenaar <Bram@vim.org>
date Sun, 25 Nov 2018 04:30:08 +0100
parents e041d2747f62
children c63df119db95
files src/testdir/test_modeline.vim src/version.c
diffstat 2 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/testdir/test_modeline.vim
+++ b/src/testdir/test_modeline.vim
@@ -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
--- a/src/version.c
+++ b/src/version.c
@@ -793,6 +793,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    546,
+/**/
     545,
 /**/
     544,