mirror of
https://github.com/neovim/neovim.git
synced 2026-01-23 13:20:36 +00:00
vim-patch:8.1.2261: with modifyOtherKeys set 'noesckeys' doesn't work
Problem: With modifyOtherKeys set 'noesckeys' doesn't work. (James McCoy)
Solution: Disable modifyOtherKeys while in Insert mode when 'noesckeys' is
set. (closes vim/vim#5180)
177c9f2f06
This commit is contained in:
@@ -1514,3 +1514,22 @@ func Test_edit_startinsert()
|
||||
set backspace&
|
||||
bwipe!
|
||||
endfunc
|
||||
|
||||
func Test_edit_noesckeys()
|
||||
new
|
||||
|
||||
" <Left> moves cursor when 'esckeys' is set
|
||||
exe "set t_kl=\<Esc>OD"
|
||||
" set esckeys
|
||||
call feedkeys("axyz\<Esc>ODX", "xt")
|
||||
" call assert_equal("xyXz", getline(1))
|
||||
|
||||
" <Left> exits Insert mode when 'esckeys' is off
|
||||
" set noesckeys
|
||||
call setline(1, '')
|
||||
call feedkeys("axyz\<Esc>ODX", "xt")
|
||||
call assert_equal(["DX", "xyz"], getline(1, 2))
|
||||
|
||||
bwipe!
|
||||
" set esckeys
|
||||
endfunc
|
||||
|
||||
Reference in New Issue
Block a user