Mercurial > vim
view src/testdir/test_feedkeys.vim @ 23554:c43e824fd305
Added tag v8.2.2319 for changeset 5c094273c01565a714ac1acaf674687102850788
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 09 Jan 2021 16:00:05 +0100 |
parents | 08940efa6b4e |
children | e06cbcf4b94b |
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 " vim: shiftwidth=2 sts=2 expandtab