comparison src/testdir/test_feedkeys.vim @ 28668:53c608c7ea9e v8.2.4858

patch 8.2.4858: K_SPECIAL may be escaped twice Commit: https://github.com/vim/vim/commit/db08887f24d20be11d184ce321bc0890613e42bd Author: zeertzjq <zeertzjq@outlook.com> Date: Mon May 2 22:53:45 2022 +0100 patch 8.2.4858: K_SPECIAL may be escaped twice Problem: K_SPECIAL may be escaped twice. Solution: Avoid double escaping. (closes https://github.com/vim/vim/issues/10340)
author Bram Moolenaar <Bram@vim.org>
date Tue, 03 May 2022 00:00:04 +0200
parents e06cbcf4b94b
children
comparison
equal deleted inserted replaced
28667:7782b07d29ca 28668:53c608c7ea9e
21 call assert_equal('value value ', getline(1)) 21 call assert_equal('value value ', getline(1))
22 bwipe! 22 bwipe!
23 iunabbrev trigger 23 iunabbrev trigger
24 endfunc 24 endfunc
25 25
26 func Test_feedkeys_escape_special()
27 nnoremap … <Cmd>let g:got_ellipsis += 1<CR>
28 call feedkeys('…', 't')
29 call assert_equal('…', getcharstr())
30 let g:got_ellipsis = 0
31 call feedkeys('…', 'xt')
32 call assert_equal(1, g:got_ellipsis)
33 unlet g:got_ellipsis
34 nunmap …
35 endfunc
36
26 " vim: shiftwidth=2 sts=2 expandtab 37 " vim: shiftwidth=2 sts=2 expandtab