diff options
Diffstat (limited to 'src/nvim/eval.c')
| -rw-r--r-- | src/nvim/eval.c | 7 | 
1 files changed, 7 insertions, 0 deletions
diff --git a/src/nvim/eval.c b/src/nvim/eval.c index d8d785395c..a7773e7c5e 100644 --- a/src/nvim/eval.c +++ b/src/nvim/eval.c @@ -19528,6 +19528,13 @@ void ex_execute(exarg_T *eap)    }    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) {        MSG_ATTR(ga.ga_data, echo_attr);        ui_flush();  | 
