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)
diff --git a/src/message.c b/src/message.c
index 57197c1..9c35543 100644
--- a/src/message.c
+++ b/src/message.c
@@ -535,11 +535,11 @@
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 @@
#endif
/*
* Display name and line number for the source of the error.
- * Sets "msg_scroll".
*/
+ msg_scroll = TRUE;
msg_source(attr);
/*