0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

patch 8.2.1113: no test for verbose output of :call

Problem:    No test for verbose output of :call.
Solution:   Add a test.
This commit is contained in:
Bram Moolenaar
2020-07-01 20:19:37 +02:00
parent 5f195938d4
commit a0d072ef82
2 changed files with 13 additions and 0 deletions

View File

@@ -222,6 +222,17 @@ func Test_endfunction_trailing()
delfunc Xtest delfunc Xtest
set verbose=0 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() function Foo()
echo 'hello' echo 'hello'
endfunction | echo 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' endfunction | echo 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'

View File

@@ -754,6 +754,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
1113,
/**/ /**/
1112, 1112,
/**/ /**/