summaryrefslogtreecommitdiff
path: root/ide-autocomplete.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2022-12-31 10:33:21 -0500
committerpommicket <pommicket@gmail.com>2022-12-31 10:33:21 -0500
commit2b3b1bd0ed03739e3357516490e265261c5f815f (patch)
tree2be37644621ab86838bb6fdb20954660ce617064 /ide-autocomplete.c
parentf1751dbb895996728f293c6f895691693c9e8a86 (diff)
use double instead of struct timespec
Diffstat (limited to 'ide-autocomplete.c')
-rw-r--r--ide-autocomplete.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ide-autocomplete.c b/ide-autocomplete.c
index a30a33f..47b238f 100644
--- a/ide-autocomplete.c
+++ b/ide-autocomplete.c
@@ -352,8 +352,8 @@ static void autocomplete_frame(Ted *ted) {
size_t ncompletions = arr_len(ac->suggested);
if (ac->waiting_for_lsp && ncompletions == 0) {
- struct timespec now = ted->frame_time;
- if (timespec_sub(now, ac->lsp_request_time) < 0.2) {
+ double now = ted->frame_time;
+ if (now - ac->lsp_request_time < 0.2) {
// don't show "Loading..." unless we've actually been loading for a bit of time
return;
}