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 /command.c | |
parent | 2b3b1bd0ed03739e3357516490e265261c5f815f (diff) |
avoid using time_get_seconds
because it makes a syscall
Diffstat (limited to 'command.c')
-rw-r--r-- | command.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -224,7 +224,7 @@ void command_execute(Ted *ted, Command c, i64 argument) { ted_new_file(ted, NULL); break; case CMD_SAVE: - ted->last_save_time = time_get_seconds(); + ted->last_save_time = ted->frame_time; if (buffer) { if (buffer_is_untitled(buffer)) { command_execute(ted, CMD_SAVE_AS, 1); @@ -234,13 +234,13 @@ void command_execute(Ted *ted, Command c, i64 argument) { } break; case CMD_SAVE_AS: - ted->last_save_time = time_get_seconds(); + ted->last_save_time = ted->frame_time; if (buffer && !buffer->is_line_buffer) { menu_open(ted, MENU_SAVE_AS); } break; case CMD_SAVE_ALL: - ted->last_save_time = time_get_seconds(); + ted->last_save_time = ted->frame_time; ted_save_all(ted); break; case CMD_RELOAD_ALL: |