1
0
forked from aniani/vim

patch 8.2.4833: failure of mapping not checked for

Problem:    Failure of mapping not checked for.
Solution:   Check return value of ins_typebuf(). (closes #10299)
This commit is contained in:
zeertzjq
2022-04-27 11:58:01 +01:00
committed by Bram Moolenaar
parent fc78a0369e
commit 12e21e387b
4 changed files with 24 additions and 5 deletions

View File

@@ -2439,8 +2439,9 @@ endfunc
func Test_simplify_ctrl_at()
" feeding unsimplified CTRL-@ should still trigger i_CTRL-@
call feedkeys("ifoo\<Esc>A\<*C-@>", 'xt')
call assert_equal('foofoo', getline(1))
call feedkeys("ifoo\<Esc>A\<*C-@>x", 'xt')
call assert_equal('foofo', getline(1))
bw!
endfunc