Mercurial > vim
view src/testdir/test_feedkeys.vim @ 23950:4279c1c66df1 v8.2.2517
patch 8.2.2517: Vim9: fix for s390 not tested on other systems
Commit: https://github.com/vim/vim/commit/7c5b3c03699a4ab31f47c24290852d441ea8c12a
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Feb 14 22:40:57 2021 +0100
patch 8.2.2517: Vim9: fix for s390 not tested on other systems
Problem: Vim9: fix for s390 not tested on other systems.
Solution: Add a test.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 14 Feb 2021 22:45:03 +0100 |
parents | 08940efa6b4e |
children | e06cbcf4b94b |
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 " vim: shiftwidth=2 sts=2 expandtab