forked from aniani/vim
patch 8.2.4858: K_SPECIAL may be escaped twice
Problem: K_SPECIAL may be escaped twice. Solution: Avoid double escaping. (closes #10340)
This commit is contained in:
@@ -1643,4 +1643,19 @@ func Test_unmap_simplifiable()
|
||||
unmap <C-I>
|
||||
endfunc
|
||||
|
||||
func Test_expr_map_escape_special()
|
||||
nnoremap … <Cmd>let g:got_ellipsis += 1<CR>
|
||||
func Func()
|
||||
return '…'
|
||||
endfunc
|
||||
nmap <expr> <F2> Func()
|
||||
let g:got_ellipsis = 0
|
||||
call feedkeys("\<F2>", 'xt')
|
||||
call assert_equal(1, g:got_ellipsis)
|
||||
delfunc Func
|
||||
nunmap <F2>
|
||||
unlet g:got_ellipsis
|
||||
nunmap …
|
||||
endfunc
|
||||
|
||||
" vim: shiftwidth=2 sts=2 expandtab
|
||||
|
Reference in New Issue
Block a user