aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-10-26 23:26:12 +0800
committerzeertzjq <zeertzjq@outlook.com>2022-10-27 00:14:02 +0800
commit514e6bf07b6b0fe08019906b56d1226a70d14119 (patch)
treee0a6ea84d87d1dbcd832c5576f9208a1eb00239f
parent27436b733fb1bc60e78f7fb5a0274b54b87fb04e (diff)
downloadrneovim-514e6bf07b6b0fe08019906b56d1226a70d14119.tar.gz
rneovim-514e6bf07b6b0fe08019906b56d1226a70d14119.tar.bz2
rneovim-514e6bf07b6b0fe08019906b56d1226a70d14119.zip
vim-patch:8.2.1113: no test for verbose output of :call
Problem: No test for verbose output of :call. Solution: Add a test. https://github.com/vim/vim/commit/a0d072ef8203b225bd46bcd826cb3d2e3c3b941a Co-authored-by: Bram Moolenaar <Bram@vim.org>
-rw-r--r--src/nvim/testdir/test_user_func.vim11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_user_func.vim b/src/nvim/testdir/test_user_func.vim
index c517d1133a..8b5ee72bf1 100644
--- a/src/nvim/testdir/test_user_func.vim
+++ b/src/nvim/testdir/test_user_func.vim
@@ -225,6 +225,17 @@ func Test_endfunction_trailing()
delfunc Xtest
set verbose=0
+ func Xtest(a1, a2)
+ echo a:a1 .. a:a2
+ endfunc
+ set verbose=15
+ redir @a
+ call Xtest(123, repeat('x', 100))
+ redir END
+ call assert_match('calling Xtest(123, ''xxxxxxx.*x\.\.\.x.*xxxx'')', getreg('a'))
+ delfunc Xtest
+ set verbose=0
+
function Foo()
echo 'hello'
endfunction | echo 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'