mirror of
https://github.com/neovim/neovim.git
synced 2025-11-16 15:21:20 +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:
@@ -1954,7 +1954,7 @@ buf_T *buflist_new(char *ffname_arg, char *sfname_arg, linenr_T lnum, int flags)
|
||||
pmap_put(int)(&buffer_handles, buf->b_fnum, buf);
|
||||
if (top_file_num < 0) { // wrap around (may cause duplicates)
|
||||
emsg(_("W14: Warning: List of file names overflow"));
|
||||
if (emsg_silent == 0 && !in_assert_fails) {
|
||||
if (emsg_silent == 0 && !in_assert_fails && !ui_has(kUIMessages)) {
|
||||
ui_flush();
|
||||
os_delay(3001, true); // make sure it is noticed
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user