diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2021-04-13 00:26:34 -0400 |
---|---|---|
committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2021-04-15 18:06:51 -0400 |
commit | b8c3bb67904794e9f45bdc4546aa43009f43c592 (patch) | |
tree | eeda77625a3126273d549a9ff0967ec066a06dd4 /src/nvim/fileio.c | |
parent | 94b10d25dae98852c03173e5c0bb7e3bd22cc80d (diff) | |
download | rneovim-b8c3bb67904794e9f45bdc4546aa43009f43c592.tar.gz rneovim-b8c3bb67904794e9f45bdc4546aa43009f43c592.tar.bz2 rneovim-b8c3bb67904794e9f45bdc4546aa43009f43c592.zip |
vim-patch:8.1.2313: debugging where a delay comes from is not easy
Problem: Debugging where a delay comes from is not easy.
Solution: Use different values when calling ui_delay().
https://github.com/vim/vim/commit/eda1da0c9a8db1400649629117e7d248c07735f7
Diffstat (limited to 'src/nvim/fileio.c')
-rw-r--r-- | src/nvim/fileio.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/nvim/fileio.c b/src/nvim/fileio.c index 65bd809436..792ef81665 100644 --- a/src/nvim/fileio.c +++ b/src/nvim/fileio.c @@ -4947,11 +4947,11 @@ int buf_check_timestamp(buf_T *buf) (void)msg_end(); if (emsg_silent == 0) { ui_flush(); - /* give the user some time to think about it */ - os_delay(1000L, true); + // give the user some time to think about it + os_delay(1004L, true); - /* don't redraw and erase the message */ - redraw_cmdline = FALSE; + // don't redraw and erase the message + redraw_cmdline = false; } } already_warned = TRUE; |