mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
Merge #8584 from janlazo/vim-8.0.0467
This commit is contained in:
commit
9500448220
@ -19528,6 +19528,13 @@ void ex_execute(exarg_T *eap)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (ret != FAIL && ga.ga_data != NULL) {
|
if (ret != FAIL && ga.ga_data != NULL) {
|
||||||
|
if (eap->cmdidx == CMD_echomsg || eap->cmdidx == CMD_echoerr) {
|
||||||
|
// Mark the already saved text as finishing the line, so that what
|
||||||
|
// follows is displayed on a new line when scrolling back at the
|
||||||
|
// more prompt.
|
||||||
|
msg_sb_eol();
|
||||||
|
}
|
||||||
|
|
||||||
if (eap->cmdidx == CMD_echomsg) {
|
if (eap->cmdidx == CMD_echomsg) {
|
||||||
MSG_ATTR(ga.ga_data, echo_attr);
|
MSG_ATTR(ga.ga_data, echo_attr);
|
||||||
ui_flush();
|
ui_flush();
|
||||||
|
@ -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&
|
||||||
|
Loading…
Reference in New Issue
Block a user