vim-patch:8.1.0546: modeline test with keymap fails

Problem:    Modeline test with keymap fails.
Solution:   Check that the keymap feature is available.
4ace6ab7e7
This commit is contained in:
Jan Edmund Lazo 2019-05-25 15:40:20 -04:00 committed by James McCoy
parent 5cca6f61bb
commit 9ab48aac20
No known key found for this signature in database
GPG Key ID: DFE691AE331BA3DB

View 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