comparison src/testdir/test_termcodes.vim @ 28127:b9e8f3674090 v8.2.4588

patch 8.2.4588: mapping with key after other matching mapping does not work Commit: https://github.com/vim/vim/commit/f35fd8e5d484be0e3fdd7c3c24f690083f91264d Author: Bram Moolenaar <Bram@vim.org> Date: Fri Mar 18 15:41:17 2022 +0000 patch 8.2.4588: mapping with key after other matching mapping does not work Problem: Mapping with key code after other matching mapping does not work. Solution: Change ">" to ">=". (closes https://github.com/vim/vim/issues/9903)
author Bram Moolenaar <Bram@vim.org>
date Fri, 18 Mar 2022 16:45:03 +0100
parents f615d89a5351
children 90d57cd76564
comparison
equal deleted inserted replaced
28126:b8f593e7c080 28127:b9e8f3674090
2109 call feedkeys(GetEscCodeCSI27('J', 5) .. "b\<Esc>", 'Lx!') 2109 call feedkeys(GetEscCodeCSI27('J', 5) .. "b\<Esc>", 'Lx!')
2110 call assert_equal('xb', getline(1)) 2110 call assert_equal('xb', getline(1))
2111 2111
2112 unmap <C-J> 2112 unmap <C-J>
2113 unmap <C-J>x 2113 unmap <C-J>x
2114
2115 " if a special character is following there should be a check for a termcode
2116 nnoremap s aX<Esc>
2117 nnoremap s<BS> aY<Esc>
2118 set t_kb=
2119 call setline(1, 'x')
2120 call feedkeys("s\x08", 'Lx!')
2121 call assert_equal('xY', getline(1))
2122
2114 set timeoutlen& 2123 set timeoutlen&
2115 bwipe! 2124 bwipe!
2116 endfunc 2125 endfunc
2117 2126
2118 " Whether Shift-Tab sends "ESC [ Z" or "ESC [ 27 ; 2 ; 9 ~" is unpredictable, 2127 " Whether Shift-Tab sends "ESC [ Z" or "ESC [ 27 ; 2 ; 9 ~" is unpredictable,