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:
@@ -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();
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user