forked from aniani/vim
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 #9903)
This commit is contained in:
@@ -2111,6 +2111,15 @@ func Test_modifyOtherKeys_ambiguous_mapping()
|
||||
|
||||
unmap <C-J>
|
||||
unmap <C-J>x
|
||||
|
||||
" if a special character is following there should be a check for a termcode
|
||||
nnoremap s aX<Esc>
|
||||
nnoremap s<BS> aY<Esc>
|
||||
set t_kb=
|
||||
call setline(1, 'x')
|
||||
call feedkeys("s\x08", 'Lx!')
|
||||
call assert_equal('xY', getline(1))
|
||||
|
||||
set timeoutlen&
|
||||
bwipe!
|
||||
endfunc
|
||||
|
||||
Reference in New Issue
Block a user