mirror of
https://github.com/neovim/neovim.git
synced 2024-09-17 20:58:20 -04:00
fix: use ui_busy_start() and ui_busy_stop() to prevent UI flicker
This commit is contained in:
parent
d82efeccc7
commit
9406e8d4db
@ -1264,6 +1264,7 @@ int do_search(oparg_T *oap, int dirc, int search_delim, char *pat, size_t patlen
|
||||
// do not fill the msgbuf buffer, if cmd_silent is set, leave it
|
||||
// empty for the search_stat feature.
|
||||
if (!cmd_silent) {
|
||||
ui_busy_start();
|
||||
msgbuf[0] = (char)dirc;
|
||||
if (utf_iscomposing(utf_ptr2char(p))) {
|
||||
// Use a space to draw the composing char on.
|
||||
@ -1310,6 +1311,7 @@ int do_search(oparg_T *oap, int dirc, int search_delim, char *pat, size_t patlen
|
||||
|
||||
gotocmdline(false);
|
||||
ui_flush();
|
||||
ui_busy_stop();
|
||||
msg_nowait = true; // don't wait for this message
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user