summaryrefslogtreecommitdiffstats
path: root/src/ex_docmd.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2021-04-11 13:29:18 +0200
committerBram Moolenaar <Bram@vim.org>2021-04-11 13:29:18 +0200
commit09f067fca38c9f89ad088e8c096c4df3998575e2 (patch)
tree4b6f8d96e2ddd80541748e2484e75c41abea0954 /src/ex_docmd.c
parentf93bbd026205f36915312193784f987ad49fb114 (diff)
patch 8.2.2754: :sleep! does not always hide the cursorv8.2.2754
Problem: :sleep! does not always hide the cursor. Solution: Add the cursor_is_asleep flag. (Jeremy Lerner, closes #8097, closes #7998)
Diffstat (limited to 'src/ex_docmd.c')
-rw-r--r--src/ex_docmd.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ex_docmd.c b/src/ex_docmd.c
index c8cb11ba75..7c1c448551 100644
--- a/src/ex_docmd.c
+++ b/src/ex_docmd.c
@@ -7370,7 +7370,7 @@ do_sleep(long msec, int hide_cursor)
# endif
if (hide_cursor)
- cursor_off();
+ cursor_sleep();
else
cursor_on();
@@ -7422,6 +7422,9 @@ do_sleep(long msec, int hide_cursor)
// input buffer, otherwise a following call to input() fails.
if (got_int)
(void)vpeekc();
+
+ if (hide_cursor)
+ cursor_unsleep();
}
/*