aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ui.c
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2023-04-25 12:32:06 +0200
committerGitHub <noreply@github.com>2023-04-25 12:32:06 +0200
commit965ad7726f91c2597ef6eb7a740ae024da99ec9b (patch)
tree431f38d607eb9b3f9b589cae64cf90e718fca42e /src/nvim/ui.c
parenta4b2400804355e99813f39a6b38d8f38667f8bdd (diff)
parent0d2fe7786537ef63d0d3ed1e94546eb3ee35a368 (diff)
downloadrneovim-965ad7726f91c2597ef6eb7a740ae024da99ec9b.tar.gz
rneovim-965ad7726f91c2597ef6eb7a740ae024da99ec9b.tar.bz2
rneovim-965ad7726f91c2597ef6eb7a740ae024da99ec9b.zip
Merge pull request #23293 from bfredl/bigsleep
refactor(time): refactor delay with input checking
Diffstat (limited to 'src/nvim/ui.c')
-rw-r--r--src/nvim/ui.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/ui.c b/src/nvim/ui.c
index 45959b7b67..6d09b9f3a3 100644
--- a/src/nvim/ui.c
+++ b/src/nvim/ui.c
@@ -439,7 +439,7 @@ void ui_line(ScreenGrid *grid, int row, int startcol, int endcol, int clearcol,
MIN(clearcol, (int)grid->cols - 1));
ui_call_flush();
uint64_t wd = (uint64_t)labs(p_wd);
- os_microdelay(wd * 1000U, true);
+ os_sleep(wd);
pending_cursor_update = true; // restore the cursor later
}
}
@@ -521,7 +521,7 @@ void ui_flush(void)
ui_call_flush();
if (p_wd && (rdb_flags & RDB_FLUSH)) {
- os_microdelay((uint64_t)labs(p_wd) * 1000U, true);
+ os_sleep((uint64_t)labs(p_wd));
}
}