Mercurial > vim
comparison src/search.c @ 18642:bbea1f108187 v8.1.2313
patch 8.1.2313: debugging where a delay comes from is not easy
Commit: https://github.com/vim/vim/commit/eda1da0c9a8db1400649629117e7d248c07735f7
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Nov 17 17:06:33 2019 +0100
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().
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 17 Nov 2019 17:15:04 +0100 |
parents | c0445cb7cfe0 |
children | 7bfe68b637be |
comparison
equal
deleted
inserted
replaced
18641:b288ef9327ac | 18642:bbea1f108187 |
---|---|
2724 /* | 2724 /* |
2725 * brief pause, unless 'm' is present in 'cpo' and a character is | 2725 * brief pause, unless 'm' is present in 'cpo' and a character is |
2726 * available. | 2726 * available. |
2727 */ | 2727 */ |
2728 if (vim_strchr(p_cpo, CPO_SHOWMATCH) != NULL) | 2728 if (vim_strchr(p_cpo, CPO_SHOWMATCH) != NULL) |
2729 ui_delay(p_mat * 100L, TRUE); | 2729 ui_delay(p_mat * 100L + 8, TRUE); |
2730 else if (!char_avail()) | 2730 else if (!char_avail()) |
2731 ui_delay(p_mat * 100L, FALSE); | 2731 ui_delay(p_mat * 100L + 9, FALSE); |
2732 curwin->w_cursor = save_cursor; /* restore cursor position */ | 2732 curwin->w_cursor = save_cursor; /* restore cursor position */ |
2733 *so = save_so; | 2733 *so = save_so; |
2734 *siso = save_siso; | 2734 *siso = save_siso; |
2735 #ifdef CURSOR_SHAPE | 2735 #ifdef CURSOR_SHAPE |
2736 State = save_state; | 2736 State = save_state; |