view src/testdir/test_feedkeys.vim @ 18058:187742518187 v8.1.2024

patch 8.1.2024: delete call commented out for debugging Commit: https://github.com/vim/vim/commit/9283f92008accd0b797d2c913ce191b490ce3c3d Author: Bram Moolenaar <Bram@vim.org> Date: Fri Sep 13 21:48:34 2019 +0200 patch 8.1.2024: delete call commented out for debugging Problem: Delete call commented out for debugging. Solution: Restore the delete call. (Christian Brabandt)
author Bram Moolenaar <Bram@vim.org>
date Fri, 13 Sep 2019 22:00:03 +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