mirror of
https://github.com/neovim/neovim.git
synced 2024-12-20 03:05:11 -07:00
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:
parent
17106b96e9
commit
df46f91977
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user