summaryrefslogtreecommitdiffstats
path: root/src/gui.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/gui.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/gui.c')
-rw-r--r--src/gui.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui.c b/src/gui.c
index 0265f7c964..c0374c561d 100644
--- a/src/gui.c
+++ b/src/gui.c
@@ -1120,6 +1120,11 @@ gui_update_cursor(
|| gui.row != gui.cursor_row || gui.col != gui.cursor_col)
{
gui_undraw_cursor();
+
+ // If a cursor-less sleep is ongoing, leave the cursor invisible
+ if (cursor_is_sleeping())
+ return;
+
if (gui.row < 0)
return;
#ifdef HAVE_INPUT_METHOD