0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 8.2.2754: :sleep! does not always hide the cursor

Problem:    :sleep! does not always hide the cursor.
Solution:   Add the cursor_is_asleep flag. (Jeremy Lerner, closes #8097,
            closes #7998)
This commit is contained in:
Bram Moolenaar
2021-04-11 13:29:18 +02:00
parent f93bbd0262
commit 09f067fca3
6 changed files with 52 additions and 4 deletions

View File

@@ -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();
}
/*