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:
@@ -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
|
||||
|
Reference in New Issue
Block a user