aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ui_compositor.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_compositor.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_compositor.c')
-rw-r--r--src/nvim/ui_compositor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/ui_compositor.c b/src/nvim/ui_compositor.c
index 9ff9eabff8..8d279aa998 100644
--- a/src/nvim/ui_compositor.c
+++ b/src/nvim/ui_compositor.c
@@ -467,7 +467,7 @@ static void debug_delay(Integer lines)
ui_call_flush();
uint64_t wd = (uint64_t)labs(p_wd);
uint64_t factor = (uint64_t)MAX(MIN(lines, 5), 1);
- os_microdelay(factor * wd * 1000U, true);
+ os_sleep(factor * wd);
}
static void compose_area(Integer startrow, Integer endrow, Integer startcol, Integer endcol)