1
0
forked from aniani/vim

patch 8.2.1362: last entry of ":set term=xxx" overwritten by error message

Problem:    Last entry of ":set term=xxx" overwritten by error message when
            'cmdheight' is two or more. (Tony Mechelynck)
Solution:   Output extra line breaks.
This commit is contained in:
Bram Moolenaar
2020-08-04 20:17:31 +02:00
parent 6a25026262
commit ecd34bf55d
3 changed files with 19 additions and 0 deletions

View File

@@ -1763,6 +1763,7 @@ get_term_entries(int *height, int *width)
report_term_error(char *error_msg, char_u *term)
{
struct builtin_term *termp;
int i;
mch_errmsg("\r\n");
if (error_msg != NULL)
@@ -1787,6 +1788,10 @@ report_term_error(char *error_msg, char_u *term)
mch_errmsg("\r\n");
}
}
// Output extra 'cmdheight' line breaks to avoid that the following error
// message overwrites the last terminal name.
for (i = 1; i < p_ch; ++i)
mch_errmsg("\r\n");
}
static void