view src/testdir/test_feedkeys.vim @ 18858:539c05ea2d3a v8.1.2415

patch 8.1.2415: popup menu flickers if an info popup is used Commit: https://github.com/vim/vim/commit/04357fbb87e65e50cc76295aec50114adb5cbd68 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Dec 10 21:50:56 2019 +0100 patch 8.1.2415: popup menu flickers if an info popup is used Problem: Popup menu flickers if an info popup is used. (Nick Spoons) Solution: Set the pum_skip_redraw flag.
author Bram Moolenaar <Bram@vim.org>
date Tue, 10 Dec 2019 22:00:04 +0100
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