mirror of
https://github.com/vim/vim.git
synced 2025-09-27 04:14:06 -04:00
updated for version 7.3.483
Problem: More prompt shows up too often. Solution: Instead of adding a line break, only start a new line in the message history. (Christian Brabandt)
This commit is contained in:
@@ -20493,9 +20493,10 @@ ex_echo(eap)
|
|||||||
* may cause a message to appear. */
|
* may cause a message to appear. */
|
||||||
if (eap->cmdidx == CMD_echo)
|
if (eap->cmdidx == CMD_echo)
|
||||||
{
|
{
|
||||||
/* Put the output below the command, makes scrolling back
|
/* Mark the saved text as finishing the line, so that what
|
||||||
* at more prompt work. */
|
* follows is displayed on a new line when scrolling back
|
||||||
msg_didout = TRUE;
|
* at the more prompt. */
|
||||||
|
msg_sb_eol();
|
||||||
msg_start();
|
msg_start();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -2347,6 +2347,16 @@ msg_sb_start(mps)
|
|||||||
return mp;
|
return mp;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Mark the last message chunk as finishing the line.
|
||||||
|
*/
|
||||||
|
void
|
||||||
|
msg_sb_eol()
|
||||||
|
{
|
||||||
|
if (last_msgchunk != NULL)
|
||||||
|
last_msgchunk->sb_eol = TRUE;
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Display a screen line from previously displayed text at row "row".
|
* Display a screen line from previously displayed text at row "row".
|
||||||
* Returns a pointer to the text for the next line (can be NULL).
|
* Returns a pointer to the text for the next line (can be NULL).
|
||||||
|
@@ -45,6 +45,7 @@ void msg_puts_attr __ARGS((char_u *s, int attr));
|
|||||||
void may_clear_sb_text __ARGS((void));
|
void may_clear_sb_text __ARGS((void));
|
||||||
void clear_sb_text __ARGS((void));
|
void clear_sb_text __ARGS((void));
|
||||||
void show_sb_text __ARGS((void));
|
void show_sb_text __ARGS((void));
|
||||||
|
void msg_sb_eol __ARGS((void));
|
||||||
int msg_use_printf __ARGS((void));
|
int msg_use_printf __ARGS((void));
|
||||||
void mch_errmsg __ARGS((char *str));
|
void mch_errmsg __ARGS((char *str));
|
||||||
void mch_msg __ARGS((char *str));
|
void mch_msg __ARGS((char *str));
|
||||||
|
@@ -714,6 +714,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
483,
|
||||||
/**/
|
/**/
|
||||||
482,
|
482,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user