mirror of
https://github.com/neovim/neovim.git
synced 2025-09-28 22:18:33 +00:00
vim-patch:9.0.0511: unnecessary scrolling for message of only one line (#20261)
Problem: Unnecessary scrolling for message of only one line.
Solution: Only set msg_scroll when needed. (closes vim/vim#11178)
bdedd2bcce
This commit is contained in:
@@ -596,10 +596,10 @@ void msg_source(int attr)
|
||||
}
|
||||
recursive = true;
|
||||
|
||||
msg_scroll = true; // this will take more than one line
|
||||
no_wait_return++;
|
||||
char *p = get_emsg_source();
|
||||
if (p != NULL) {
|
||||
msg_scroll = true; // this will take more than one line
|
||||
msg_attr(p, attr);
|
||||
xfree(p);
|
||||
}
|
||||
@@ -739,7 +739,7 @@ static bool emsg_multiline(const char *s, bool multiline)
|
||||
}
|
||||
|
||||
// Display name and line number for the source of the error.
|
||||
// Sets "msg_scroll".
|
||||
msg_scroll = true;
|
||||
msg_source(attr);
|
||||
|
||||
// Display the error message itself.
|
||||
|
Reference in New Issue
Block a user