view src/testdir/test_feedkeys.vim @ 25456:b6b6400dee89

Added tag v8.2.3264 for changeset e7c02cbe701fc72be7e66e6b61a76743d6f2ce23
author Bram Moolenaar <Bram@vim.org>
date Sun, 01 Aug 2021 12:15: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