1
0
forked from aniani/vim

patch 8.2.2608: character input not fully tested

Problem:    Character input not fully tested.
Solution:   Add more tests. (Yegappan Lakshmanan, closes #7963)
This commit is contained in:
Bram Moolenaar
2021-03-15 18:36:20 +01:00
parent 02b4d9b18a
commit f4fcedc59d
6 changed files with 59 additions and 0 deletions

View File

@@ -149,4 +149,18 @@ func Test_xrestore()
bwipe!
endfunc
" Test for 'pastetoggle'
func Test_pastetoggle()
new
set pastetoggle=<F4>
set nopaste
call feedkeys("iHello\<F4>", 'xt')
call assert_true(&paste)
call feedkeys("i\<F4>", 'xt')
call assert_false(&paste)
call assert_equal('Hello', getline(1))
set pastetoggle&
bwipe!
endfunc
" vim: shiftwidth=2 sts=2 expandtab