diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-07-23 23:00:08 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-07-23 23:00:08 +0200 |
commit | 949f1989cba8bf7653316c2b1444c26f1536bfab (patch) | |
tree | 22f1e36b509f577bae3c02ab0a22529dc378f325 /src/testdir/test_arglist.vim | |
parent | c3328169d5566b97a6a6921067017e4369dd7cd6 (diff) | |
download | vim-git-949f1989cba8bf7653316c2b1444c26f1536bfab.tar.gz |
patch 8.1.1737: :args command that outputs one line gives more promptv8.1.1737
Problem: :args command that outputs one line gives more prompt.
Solution: Only output line break if needed. (Daniel Hahler, closes #4715)
Diffstat (limited to 'src/testdir/test_arglist.vim')
-rw-r--r-- | src/testdir/test_arglist.vim | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/testdir/test_arglist.vim b/src/testdir/test_arglist.vim index ad44a855e..441373bea 100644 --- a/src/testdir/test_arglist.vim +++ b/src/testdir/test_arglist.vim @@ -140,10 +140,7 @@ func Test_argument() call assert_equal(['d', 'c', 'b', 'a', 'c'], g:buffers) - redir => result - args - redir END - call assert_equal('a b [c] d', trim(result)) + call assert_equal("\na b [c] d ", execute(':args')) .argd call assert_equal(['a', 'b', 'd'], argv()) |