comparison src/eval.c @ 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 f4ea50924c6d
children 13544aa85dc0
comparison
equal deleted inserted replaced
11160:d0a20101ecb2 11161:404e98047f0b
8317 arg = skipwhite(arg); 8317 arg = skipwhite(arg);
8318 } 8318 }
8319 8319
8320 if (ret != FAIL && ga.ga_data != NULL) 8320 if (ret != FAIL && ga.ga_data != NULL)
8321 { 8321 {
8322 if (eap->cmdidx == CMD_echomsg || eap->cmdidx == CMD_echoerr)
8323 {
8324 /* Mark the already saved text as finishing the line, so that what
8325 * follows is displayed on a new line when scrolling back at the
8326 * more prompt. */
8327 msg_sb_eol();
8328 msg_start();
8329 }
8330
8322 if (eap->cmdidx == CMD_echomsg) 8331 if (eap->cmdidx == CMD_echomsg)
8323 { 8332 {
8324 MSG_ATTR(ga.ga_data, echo_attr); 8333 MSG_ATTR(ga.ga_data, echo_attr);
8325 out_flush(); 8334 out_flush();
8326 } 8335 }