diff options
author | Jan Edmund Lazo <janedmundlazo@hotmail.com> | 2018-06-18 08:37:52 -0400 |
---|---|---|
committer | Jan Edmund Lazo <janedmundlazo@hotmail.com> | 2018-06-18 08:38:29 -0400 |
commit | 84970bafd4bd6041db5560d10eba468217887bf3 (patch) | |
tree | 9b68c3ed9601741ecb20948082377afad3b7a95e | |
parent | 5d8594f63640e62cd5f3535f1a0e22fbbe8f54aa (diff) | |
download | rneovim-84970bafd4bd6041db5560d10eba468217887bf3.tar.gz rneovim-84970bafd4bd6041db5560d10eba468217887bf3.tar.bz2 rneovim-84970bafd4bd6041db5560d10eba468217887bf3.zip |
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)
https://github.com/vim/vim/commit/52604f2454e5369f861d3ce34764f74a0999c773
-rw-r--r-- | src/nvim/eval.c | 1 | ||||
-rw-r--r-- | src/nvim/testdir/test_cmdline.vim | 10 |
2 files changed, 10 insertions, 1 deletions
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 <F6> 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& |