Mercurial > vim
changeset 11161:404e98047f0b v8.0.0467
patch 8.0.0467: using g< after :for does not show the right output
commit https://github.com/vim/vim/commit/57002ad70c4c32f3afefec24994a974cf3eef3ad
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Mar 16 19:04:19 2017 +0100
patch 8.0.0467: using g< after :for does not show the right output
Problem: Using g< after :for does not show the right output. (Marcin
Szamotulski)
Solution: Call msg_sb_eol() in :echomsg.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Thu, 16 Mar 2017 19:15:04 +0100 |
parents | d0a20101ecb2 |
children | 406ed314f018 |
files | src/eval.c src/version.c |
diffstat | 2 files changed, 11 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/eval.c +++ b/src/eval.c @@ -8319,6 +8319,15 @@ 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(); + msg_start(); + } + if (eap->cmdidx == CMD_echomsg) { MSG_ATTR(ga.ga_data, echo_attr);