view src/testdir/test_feedkeys.vim @ 24859:9c2028b33471

Added tag v8.2.2967 for changeset 193cc8bd8a2fa97917d3a957268db920545a75c3
author Bram Moolenaar <Bram@vim.org>
date Wed, 09 Jun 2021 19:45: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