aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/search.c
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2021-04-13 00:26:34 -0400
committerJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2021-04-15 18:06:51 -0400
commitb8c3bb67904794e9f45bdc4546aa43009f43c592 (patch)
treeeeda77625a3126273d549a9ff0967ec066a06dd4 /src/nvim/search.c
parent94b10d25dae98852c03173e5c0bb7e3bd22cc80d (diff)
downloadrneovim-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/search.c')
-rw-r--r--src/nvim/search.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/nvim/search.c b/src/nvim/search.c
index c4479a077e..abe05bbd12 100644
--- a/src/nvim/search.c
+++ b/src/nvim/search.c
@@ -2373,10 +2373,11 @@ showmatch(
* brief pause, unless 'm' is present in 'cpo' and a character is
* available.
*/
- if (vim_strchr(p_cpo, CPO_SHOWMATCH) != NULL)
- os_delay(p_mat * 100L, true);
- else if (!char_avail())
- os_delay(p_mat * 100L, false);
+ if (vim_strchr(p_cpo, CPO_SHOWMATCH) != NULL) {
+ os_delay(p_mat * 100L + 8, true);
+ } else if (!char_avail()) {
+ os_delay(p_mat * 100L + 9, false);
+ }
curwin->w_cursor = save_cursor; // restore cursor position
*so = save_so;
*siso = save_siso;