summaryrefslogtreecommitdiff
path: root/ted.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2022-12-31 10:41:01 -0500
committerpommicket <pommicket@gmail.com>2022-12-31 10:41:24 -0500
commit31520dd979ef8abe4e38d4ba0b2912a8385b8351 (patch)
tree4a19d083e416741a6b52fdbfda6166ec1773a021 /ted.c
parent2b3b1bd0ed03739e3357516490e265261c5f815f (diff)
avoid using time_get_seconds
because it makes a syscall
Diffstat (limited to 'ted.c')
-rw-r--r--ted.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ted.c b/ted.c
index 8b17344..3868a29 100644
--- a/ted.c
+++ b/ted.c
@@ -536,7 +536,7 @@ bool ted_get_mouse_buffer_pos(Ted *ted, TextBuffer **pbuffer, BufferPos *ppos) {
// make the cursor red for a bit to indicate an error (e.g. no autocompletions)
void ted_flash_error_cursor(Ted *ted) {
- ted->cursor_error_time = time_get_seconds();
+ ted->cursor_error_time = ted->frame_time;
}
void ted_go_to_position(Ted *ted, const char *path, u32 line, u32 index, bool is_lsp) {