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)
diff --git a/src/normal.c b/src/normal.c
index faf6ffb..a5f5794 100644
--- a/src/normal.c
+++ b/src/normal.c
@@ -993,7 +993,7 @@
// 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 @@
* "gs": Goto sleep.
*/
case 's':
- do_sleep(cap->count1 * 1000L);
+ do_sleep(cap->count1 * 1000L, FALSE);
break;
/*