view src/testdir/test_feedkeys.vim @ 16732:6411f8ef550d v8.1.1368

patch 8.1.1368: modeline test fails with python but without pythonhome commit https://github.com/vim/vim/commit/e09244ee3567d658c293fb1ae0d47a1a8be870ac Author: Bram Moolenaar <Bram@vim.org> Date: Thu May 23 17:35:55 2019 +0200 patch 8.1.1368: modeline test fails with python but without pythonhome Problem: Modeline test fails with python but without pythonhome. Solution: Correct test argument.
author Bram Moolenaar <Bram@vim.org>
date Thu, 23 May 2019 17:45:05 +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