view src/testdir/test_feedkeys.vim @ 16944:d23afa4d8b63

Update runtime files. commit https://github.com/vim/vim/commit/61da1bfa6c6b19dd670671a318ce9f9e2acc784c Author: Bram Moolenaar <Bram@vim.org> Date: Thu Jun 6 12:14:49 2019 +0200 Update runtime files.
author Bram Moolenaar <Bram@vim.org>
date Thu, 06 Jun 2019 12:15:07 +0200
parents 6b70b9cdebfc
children 08940efa6b4e
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