From afce081b90c1e2c50c3507758c7558a0dfa1f33e Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 27 Apr 2024 15:18:03 +0200 Subject: Adding upstream version 2:8.2.2434. Signed-off-by: Daniel Baumann --- src/testdir/test_feedkeys.vim | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 src/testdir/test_feedkeys.vim (limited to 'src/testdir/test_feedkeys.vim') diff --git a/src/testdir/test_feedkeys.vim b/src/testdir/test_feedkeys.vim new file mode 100644 index 0000000..38b2f9f --- /dev/null +++ b/src/testdir/test_feedkeys.vim @@ -0,0 +1,16 @@ +" Test feedkeys() function. + +func Test_feedkeys_x_with_empty_string() + new + call feedkeys("ifoo\") + 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 -- cgit v1.2.3