view src/testdir/test_feedkeys.vim @ 21745:35921b7fc07a v8.2.1422

patch 8.2.1422: the Mac GUI implementation is outdated Commit: https://github.com/vim/vim/commit/097148e849136b49052b1b5123c714fb1d74db9b Author: Bram Moolenaar <Bram@vim.org> Date: Tue Aug 11 21:58:20 2020 +0200 patch 8.2.1422: the Mac GUI implementation is outdated Problem: The Mac GUI implementation is outdated and probably doesn't even work. Solution: Remove the Mac GUI code. The MacVim project provides the supported Vim GUI version.
author Bram Moolenaar <Bram@vim.org>
date Tue, 11 Aug 2020 22:00:04 +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