diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2020-09-19 10:45:01 -0400 |
---|---|---|
committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2020-09-19 10:57:57 -0400 |
commit | 17106b96e9c61ba8710b84c3fdd718e85f8a8365 (patch) | |
tree | 550f03366f5400374595a9f3f364338ebfeff55e | |
parent | d3e0d299192b7db07445db2fcdcbe089e1cf08f1 (diff) | |
download | rneovim-17106b96e9c61ba8710b84c3fdd718e85f8a8365.tar.gz rneovim-17106b96e9c61ba8710b84c3fdd718e85f8a8365.tar.bz2 rneovim-17106b96e9c61ba8710b84c3fdd718e85f8a8365.zip |
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)
https://github.com/vim/vim/commit/177c9f2f06b048f4c1e154d29423edf65b128f8c
-rw-r--r-- | src/nvim/testdir/test_edit.vim | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_edit.vim b/src/nvim/testdir/test_edit.vim index 12d5d9790e..a863a254b6 100644 --- a/src/nvim/testdir/test_edit.vim +++ b/src/nvim/testdir/test_edit.vim @@ -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 |