Mercurial > vim
view src/testdir/test_feedkeys.vim @ 13761:ddd0ad66922b
Added tag v8.0.1752 for changeset aef8ba129a4fe3b09dc83a8b3297a1c7b959248a
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Tue, 24 Apr 2018 14:00:08 +0200 |
parents | 6b70b9cdebfc |
children | 08940efa6b4e |
line wrap: on
line source
" Test feedkeys() function. func Test_feedkeys_x_with_empty_string() new call feedkeys("ifoo\<Esc>") call assert_equal('', getline('.')) call feedkeys('', 'x') call assert_equal('foo', getline('.')) " check it goes back to normal mode immediately. call feedkeys('i', 'x') call assert_equal('foo', getline('.')) quit! endfunc