mirror of
https://github.com/neovim/neovim.git
synced 2025-09-29 14:38:32 +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:
@@ -925,7 +925,6 @@ static void show_one_mark(int c, char_u *arg, pos_T *p, char_u *name_arg, int cu
|
||||
msg_outtrans_attr((char *)name, current ? HL_ATTR(HLF_D) : 0);
|
||||
}
|
||||
}
|
||||
ui_flush(); // show one line at a time
|
||||
}
|
||||
if (mustfree) {
|
||||
xfree(name);
|
||||
@@ -1058,7 +1057,6 @@ void ex_jumps(exarg_T *eap)
|
||||
xfree(name);
|
||||
os_breakcheck();
|
||||
}
|
||||
ui_flush();
|
||||
}
|
||||
if (curwin->w_jumplistidx == curwin->w_jumplistlen) {
|
||||
msg_puts("\n>");
|
||||
@@ -1101,7 +1099,6 @@ void ex_changes(exarg_T *eap)
|
||||
xfree(name);
|
||||
os_breakcheck();
|
||||
}
|
||||
ui_flush();
|
||||
}
|
||||
if (curwin->w_changelistidx == curbuf->b_changelistlen) {
|
||||
msg_puts("\n>");
|
||||
|
Reference in New Issue
Block a user