aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Edmund Lazo <janedmundlazo@hotmail.com>2018-06-18 08:34:11 -0400
committerJan Edmund Lazo <janedmundlazo@hotmail.com>2018-06-18 08:37:05 -0400
commit5d8594f63640e62cd5f3535f1a0e22fbbe8f54aa (patch)
treecaf01d99b58eb974ff0fac2b535bb8bd8318c7a7
parent66a39fce6c70222a7f4a2dbd223a6d0c3a4a5789 (diff)
downloadrneovim-5d8594f63640e62cd5f3535f1a0e22fbbe8f54aa.tar.gz
rneovim-5d8594f63640e62cd5f3535f1a0e22fbbe8f54aa.tar.bz2
rneovim-5d8594f63640e62cd5f3535f1a0e22fbbe8f54aa.zip
vim-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. https://github.com/vim/vim/commit/57002ad70c4c32f3afefec24994a974cf3eef3ad
-rw-r--r--src/nvim/eval.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/nvim/eval.c b/src/nvim/eval.c
index d8d785395c..b8cc8fef6e 100644
--- a/src/nvim/eval.c
+++ b/src/nvim/eval.c
@@ -19528,6 +19528,14 @@ 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();
+ msg_start();
+ }
+
if (eap->cmdidx == CMD_echomsg) {
MSG_ATTR(ga.ga_data, echo_attr);
ui_flush();