# HG changeset patch # User Christian Brabandt # Date 1491575404 -7200 # Node ID 3e799a37ea22a55e30ecbd4b655d9687eb7b33f5 # Parent 106ad402619a5cb6feb5a5aa62eb27313fcfad1e patch 8.0.0547: extra line break in verbosefile commit https://github.com/vim/vim/commit/52604f2454e5369f861d3ce34764f74a0999c773 Author: Bram Moolenaar Date: Fri Apr 7 16:17:39 2017 +0200 patch 8.0.0547: extra line break in verbosefile Problem: Extra line break in verbosefile when using ":echomsg". (Ingo Karkat) Solution: Don't call msg_start(). (closes #1618) diff --git a/src/eval.c b/src/eval.c --- a/src/eval.c +++ b/src/eval.c @@ -8328,7 +8328,6 @@ ex_execute(exarg_T *eap) * follows is displayed on a new line when scrolling back at the * more prompt. */ msg_sb_eol(); - msg_start(); } if (eap->cmdidx == CMD_echomsg) diff --git a/src/testdir/test_cmdline.vim b/src/testdir/test_cmdline.vim --- a/src/testdir/test_cmdline.vim +++ b/src/testdir/test_cmdline.vim @@ -412,4 +412,14 @@ func Test_getcmdtype() cunmap endfunc +func Test_verbosefile() + set verbosefile=Xlog + echomsg 'foo' + echomsg 'bar' + set verbosefile= + let log = readfile('Xlog') + call assert_match("foo\nbar", join(log, "\n")) + call delete('Xlog') +endfunc + set cpo& diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -765,6 +765,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 547, +/**/ 546, /**/ 545,