diff options
author | pommicket <pommicket@gmail.com> | 2022-12-31 10:33:21 -0500 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2022-12-31 10:33:21 -0500 |
commit | 2b3b1bd0ed03739e3357516490e265261c5f815f (patch) | |
tree | 2be37644621ab86838bb6fdb20954660ce617064 /ide-definitions.c | |
parent | f1751dbb895996728f293c6f895691693c9e8a86 (diff) |
use double instead of struct timespec
Diffstat (limited to 'ide-definitions.c')
-rw-r--r-- | ide-definitions.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ide-definitions.c b/ide-definitions.c index 6c48e26..46dc1f4 100644 --- a/ide-definitions.c +++ b/ide-definitions.c @@ -68,7 +68,7 @@ void definition_goto(Ted *ted, LSP *lsp, const char *name, LSPDocumentPosition p void definitions_frame(Ted *ted) { Definitions *defs = &ted->definitions; - if (defs->last_request_id && timespec_sub(ted->frame_time, defs->last_request_time) > 0.2) { + if (defs->last_request_id && ted->frame_time - defs->last_request_time > 0.2) { ted->cursor = ted->cursor_wait; } } |