comparison src/change.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 d6cb1e706fb7
children fd95d4dbeb37
comparison
equal deleted inserted replaced
18641:b288ef9327ac 18642:bbea1f108187
56 && time_for_testing != 1 56 && time_for_testing != 1
57 #endif 57 #endif
58 ) 58 )
59 { 59 {
60 out_flush(); 60 out_flush();
61 ui_delay(1000L, TRUE); // give the user time to think about it 61 ui_delay(1002L, TRUE); // give the user time to think about it
62 } 62 }
63 curbuf->b_did_warn = TRUE; 63 curbuf->b_did_warn = TRUE;
64 redraw_cmdline = FALSE; // don't redraw and erase the message 64 redraw_cmdline = FALSE; // don't redraw and erase the message
65 if (msg_row < Rows - 1) 65 if (msg_row < Rows - 1)
66 showmode(); 66 showmode();
116 // message. Since we could be anywhere, call wait_return() now, 116 // message. Since we could be anywhere, call wait_return() now,
117 // and don't let the emsg() set msg_scroll. 117 // and don't let the emsg() set msg_scroll.
118 if (need_wait_return && emsg_silent == 0) 118 if (need_wait_return && emsg_silent == 0)
119 { 119 {
120 out_flush(); 120 out_flush();
121 ui_delay(2000L, TRUE); 121 ui_delay(2002L, TRUE);
122 wait_return(TRUE); 122 wait_return(TRUE);
123 msg_scroll = save_msg_scroll; 123 msg_scroll = save_msg_scroll;
124 } 124 }
125 else 125 else
126 need_wait_return = save_need_wait_return; 126 need_wait_return = save_need_wait_return;