mirror of
https://github.com/neovim/neovim.git
synced 2025-10-16 23:06:14 +00:00
feat(ui): no delay for errors with ext_messages (#33693)
Problem: Delay for reading a message may be unwanted for ext_messages, and can be done by the implementation. Empty completion source error message is not distinguishable as such. Solution: Only delay without ext_messages enabled. Emit empty completion source message as an error.
This commit is contained in:
@@ -3838,9 +3838,7 @@ int vim_dialog_yesnoallcancel(int type, char *title, char *message, int dflt)
|
||||
void msg_check_for_delay(bool check_msg_scroll)
|
||||
{
|
||||
if ((emsg_on_display || (check_msg_scroll && msg_scroll))
|
||||
&& !did_wait_return
|
||||
&& emsg_silent == 0
|
||||
&& !in_assert_fails) {
|
||||
&& !did_wait_return && emsg_silent == 0 && !in_assert_fails && !ui_has(kUIMessages)) {
|
||||
ui_flush();
|
||||
os_delay(1006, true);
|
||||
emsg_on_display = false;
|
||||
|
Reference in New Issue
Block a user