diff src/testdir/test_modeline.vim @ 15073:e52034f8b457 v8.1.0547

patch 8.1.0547: modeline test with keymap still fails commit https://github.com/vim/vim/commit/3067a4dd0d768d1e4a47cf3c100f3e2b462717d7 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Nov 25 05:06:48 2018 +0100 patch 8.1.0547: modeline test with keymap still fails Problem: Modeline test with keymap still fails. Solution: Check that the keymap feature is available for the failure assert.
author Bram Moolenaar <Bram@vim.org>
date Sun, 25 Nov 2018 05:15:06 +0100
parents aabaf1499d05
children e55c26aaf484
line wrap: on
line diff
--- a/src/testdir/test_modeline.vim
+++ b/src/testdir/test_modeline.vim
@@ -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