summaryrefslogtreecommitdiff
path: root/src/testdir/test_normal.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-02-21 17:54:45 +0100
committerBram Moolenaar <Bram@vim.org>2020-02-21 17:54:45 +0100
commit818fc9ad143911b2faa0d7cee86724aa70a02080 (patch)
treee720688cb917f3fdd28739a4fc2340b270332235 /src/testdir/test_normal.vim
parent09f28f49c9b5973593f8a9b445cdc2ed3da630b6 (diff)
downloadvim-git-818fc9ad143911b2faa0d7cee86724aa70a02080.tar.gz
patch 8.2.0293: various Ex commands not sufficiently testedv8.2.0293
Problem: Various Ex commands not sufficiently tested. Solution: Add more test cases. (Yegappan Lakshmanan, closes #5673)
Diffstat (limited to 'src/testdir/test_normal.vim')
-rw-r--r--src/testdir/test_normal.vim10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/testdir/test_normal.vim b/src/testdir/test_normal.vim
index 843374d26..35d5d5fa7 100644
--- a/src/testdir/test_normal.vim
+++ b/src/testdir/test_normal.vim
@@ -2721,3 +2721,13 @@ func Test_normal_cpo_minus()
let &cpo = save_cpo
close!
endfunc
+
+" Test for using : to run a multi-line Ex command in operator pending mode
+func Test_normal_yank_with_excmd()
+ new
+ call setline(1, ['foo', 'bar', 'baz'])
+ let @a = ''
+ call feedkeys("\"ay:if v:true\<CR>normal l\<CR>endif\<CR>", 'xt')
+ call assert_equal('f', @a)
+ close!
+endfunc