view src/testdir/test_feedkeys.vim @ 22118:9a515354454d

Added tag v8.2.1608 for changeset 3ea773da9c4fdf9a2743b3207d941d0b869bc509
author Bram Moolenaar <Bram@vim.org>
date Sat, 05 Sep 2020 20:00:04 +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