Mercurial > vim
view src/testdir/test_feedkeys.vim @ 25542:fe09e69465cf
Added tag v8.2.3307 for changeset 2ae1d5a4ae5cfe19f28af18837415aa6ffbac60e
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 07 Aug 2021 15:15:03 +0200 |
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