summaryrefslogtreecommitdiffstats
path: root/src/testdir/test_ex_mode.vim
diff options
context:
space:
mode:
Diffstat (limited to 'src/testdir/test_ex_mode.vim')
-rw-r--r--src/testdir/test_ex_mode.vim11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/testdir/test_ex_mode.vim b/src/testdir/test_ex_mode.vim
index 6969d5ec04..b0e5d81a82 100644
--- a/src/testdir/test_ex_mode.vim
+++ b/src/testdir/test_ex_mode.vim
@@ -353,4 +353,15 @@ func Test_backslash_multiline2()
call assert_equal(['X \\', "Y"], getline(1, 2))
endfunc
+" Testing implicit print command
+func Test_implicit_print()
+ new
+ call setline(1, ['one', 'two', 'three'])
+ call feedkeys('Q:let a=execute(":1,2")', 'xt')
+ call feedkeys('Q:let b=execute(":3")', 'xt')
+ call assert_equal('one two', a->split('\n')->join(' '))
+ call assert_equal('three', b->split('\n')->join(' '))
+ bw!
+endfunc
+
" vim: shiftwidth=2 sts=2 expandtab