mirror of
https://github.com/neovim/neovim.git
synced 2025-10-17 07:16:09 +00:00
perf(messages): don't call ui_flush() per message line in various places
When msgsep is used, message scrolling is emulated. To make message output fast, inhibit emulated scrolling until the full message text is known
This commit is contained in:
@@ -3714,7 +3714,6 @@ void find_pattern_in_path(char_u *ptr, Direction dir, size_t len, bool whole, bo
|
||||
}
|
||||
}
|
||||
}
|
||||
ui_flush(); // output each line directly
|
||||
}
|
||||
|
||||
if (new_fname != NULL) {
|
||||
@@ -4147,7 +4146,6 @@ static void show_pat_in_path(char_u *line, int type, bool did_show, int action,
|
||||
msg_puts(" ");
|
||||
}
|
||||
msg_prt_line((char *)line, false);
|
||||
ui_flush(); // show one line at a time
|
||||
|
||||
// Definition continues until line that doesn't end with '\'
|
||||
if (got_int || type != FIND_DEFINE || p < line || *p != '\\') {
|
||||
|
Reference in New Issue
Block a user