view src/testdir/test_feedkeys.vim @ 16049:75c99104f6b5

Added tag v8.1.1029 for changeset 728bef04b0d46e980c878024417f9c124d92909b
author Bram Moolenaar <Bram@vim.org>
date Thu, 21 Mar 2019 21:00:06 +0100
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