view src/testdir/test_feedkeys.vim @ 25708:a1f90f486bf7

Added tag v8.2.3389 for changeset 31db9c6df4e31fe4330e1a2813862edfc12e2bde
author Bram Moolenaar <Bram@vim.org>
date Tue, 31 Aug 2021 19:15:06 +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