view src/testdir/test_feedkeys.vim @ 21858:10d05fa7d7a9

Added tag v8.2.1478 for changeset 1f6dc5b953c41aefb3146286596cff25cfa4fa90
author Bram Moolenaar <Bram@vim.org>
date Tue, 18 Aug 2020 13:15:05 +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