0
0
mirror of https://github.com/vim/vim.git synced 2025-09-26 04:04:07 -04:00

patch 8.2.2366: when using ":sleep" the cursor is always displayed

Problem:    When using ":sleep" the cursor is always displayed.
Solution:   Do not display the cursor when using ":sleep!". (Jeremy Lerner,
            closes #7688)
This commit is contained in:
Bram Moolenaar
2021-01-16 20:21:23 +01:00
parent 70250fb4d2
commit e2edc2ed4a
10 changed files with 49 additions and 10 deletions

View File

@@ -993,7 +993,7 @@ getcount:
// something different from CTRL-N. Can't be avoided.
while ((c = vpeekc()) <= 0 && towait > 0L)
{
do_sleep(towait > 50L ? 50L : towait);
do_sleep(towait > 50L ? 50L : towait, FALSE);
towait -= 50L;
}
if (c > 0)
@@ -6230,7 +6230,7 @@ nv_g_cmd(cmdarg_T *cap)
* "gs": Goto sleep.
*/
case 's':
do_sleep(cap->count1 * 1000L);
do_sleep(cap->count1 * 1000L, FALSE);
break;
/*