vim-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 vim/vim#1618)
52604f2454
This commit is contained in:
Jan Edmund Lazo
2018-06-18 08:37:52 -04:00
parent 5d8594f636
commit 84970bafd4
2 changed files with 10 additions and 1 deletions

View File

@@ -19533,7 +19533,6 @@ void ex_execute(exarg_T *eap)
// follows is displayed on a new line when scrolling back at the // follows is displayed on a new line when scrolling back at the
// more prompt. // more prompt.
msg_sb_eol(); msg_sb_eol();
msg_start();
} }
if (eap->cmdidx == CMD_echomsg) { if (eap->cmdidx == CMD_echomsg) {

View File

@@ -430,4 +430,14 @@ func Test_getcmdtype()
cunmap <F6> cunmap <F6>
endfunc 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& set cpo&