0
0
mirror of https://github.com/vim/vim.git synced 2025-10-07 05:54:16 -04:00

patch 8.1.0546: modeline test with keymap fails

Problem:    Modeline test with keymap fails.
Solution:   Check that the keymap feature is available.
This commit is contained in:
Bram Moolenaar
2018-11-25 04:25:58 +01:00
parent dc2f73a698
commit 4ace6ab7e7
2 changed files with 5 additions and 0 deletions

View File

@@ -44,6 +44,9 @@ func Test_modeline_syntax()
endfunc endfunc
func Test_modeline_keymap() func Test_modeline_keymap()
if !has('keymap')
return
endif
call writefile(['vim: set keymap=greek :', 'nothing'], 'Xmodeline_keymap') call writefile(['vim: set keymap=greek :', 'nothing'], 'Xmodeline_keymap')
let modeline = &modeline let modeline = &modeline
set modeline set modeline

View File

@@ -792,6 +792,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
546,
/**/ /**/
545, 545,
/**/ /**/