vim-patch:8.1.2263: 'noesckeys' test fails in GUI

Problem:    'noesckeys' test fails in GUI.
Solution:   Skip the test in the GUI.
215ba3b636

Cherry-pick "CheckNotGui" command from patch 8.1.1826.
This commit is contained in:
Jan Edmund Lazo 2020-09-19 10:51:10 -04:00
parent 17106b96e9
commit df46f91977
No known key found for this signature in database
GPG Key ID: 64915E6E9F735B15
2 changed files with 12 additions and 1 deletions

View File

@ -65,3 +65,11 @@ func CheckCanRunGui()
throw 'Skipped: cannot start the GUI'
endif
endfunc
" Command to check that not currently using the GUI
command CheckNotGui call CheckNotGui()
func CheckNotGui()
if has('gui_running')
throw 'Skipped: only works in the terminal'
endif
endfunc

View File

@ -1,9 +1,11 @@
" Test for edit functions
"
if exists("+t_kD")
let &t_kD="[3;*~"
endif
source check.vim
" Needed for testing basic rightleft: Test_edit_rightleft
source view_util.vim
@ -1516,6 +1518,7 @@ func Test_edit_startinsert()
endfunc
func Test_edit_noesckeys()
CheckNotGui
new
" <Left> moves cursor when 'esckeys' is set