diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-04-11 13:29:18 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-04-11 13:29:18 +0200 |
commit | 09f067fca38c9f89ad088e8c096c4df3998575e2 (patch) | |
tree | 4b6f8d96e2ddd80541748e2484e75c41abea0954 /src/gui.c | |
parent | f93bbd026205f36915312193784f987ad49fb114 (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.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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 |