0
0
mirror of https://github.com/vim/vim.git synced 2025-09-28 04:24:06 -04:00

patch 9.0.0511: unnecessary scrolling for message of only one line

Problem:    Unnecessary scrolling for message of only one line.
Solution:   Only set msg_scroll when needed. (closes #11178)
This commit is contained in:
zeertzjq
2022-09-20 12:45:15 +01:00
committed by Bram Moolenaar
parent 7c046ae99b
commit bdedd2bcce
3 changed files with 36 additions and 2 deletions

View File

@@ -535,11 +535,11 @@ msg_source(int attr)
return;
recursive = TRUE;
msg_scroll = TRUE; // this will take more than one line
++no_wait_return;
p = get_emsg_source();
if (p != NULL)
{
msg_scroll = TRUE; // this will take more than one line
msg_attr((char *)p, attr);
vim_free(p);
}
@@ -767,8 +767,8 @@ emsg_core(char_u *s)
#endif
/*
* Display name and line number for the source of the error.
* Sets "msg_scroll".
*/
msg_scroll = TRUE;
msg_source(attr);
/*