diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-11-06 13:59:16 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-11-06 13:59:16 +0100 |
commit | 177c9f2f06b048f4c1e154d29423edf65b128f8c (patch) | |
tree | 4443782218352de1bf06af4273647e1228de87cb /src/testdir/test_edit.vim | |
parent | 36ec6f6953043270630159a61438ce558552fe3a (diff) | |
download | vim-git-177c9f2f06b048f4c1e154d29423edf65b128f8c.tar.gz |
patch 8.1.2261: with modifyOtherKeys set 'noesckeys' doesn't workv8.1.2261
Problem: With modifyOtherKeys set 'noesckeys' doesn't work. (James McCoy)
Solution: Disable modifyOtherKeys while in Insert mode when 'noesckeys' is
set. (closes #5180)
Diffstat (limited to 'src/testdir/test_edit.vim')
-rw-r--r-- | src/testdir/test_edit.vim | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/testdir/test_edit.vim b/src/testdir/test_edit.vim index 6ee584810..18846f6ef 100644 --- a/src/testdir/test_edit.vim +++ b/src/testdir/test_edit.vim @@ -1495,3 +1495,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 |