summaryrefslogtreecommitdiff
path: root/ide-autocomplete.c
diff options
context:
space:
mode:
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;
}