diff options
author | pommicket <pommicket@gmail.com> | 2022-12-31 10:41:01 -0500 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2022-12-31 10:41:24 -0500 |
commit | 31520dd979ef8abe4e38d4ba0b2912a8385b8351 (patch) | |
tree | 4a19d083e416741a6b52fdbfda6166ec1773a021 /ted.c | |
parent | 2b3b1bd0ed03739e3357516490e265261c5f815f (diff) |
avoid using time_get_seconds
because it makes a syscall
Diffstat (limited to 'ted.c')
-rw-r--r-- | ted.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) { |