diff --git a/src/nvim/eval.c b/src/nvim/eval.c index b8cc8fef6e..a7773e7c5e 100644 --- a/src/nvim/eval.c +++ b/src/nvim/eval.c @@ -19533,7 +19533,6 @@ void 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/nvim/testdir/test_cmdline.vim b/src/nvim/testdir/test_cmdline.vim index a998bd90f1..5a43838218 100644 --- a/src/nvim/testdir/test_cmdline.vim +++ b/src/nvim/testdir/test_cmdline.vim @@ -430,4 +430,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&