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:
@@ -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);
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user