summaryrefslogtreecommitdiff
path: root/command.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2022-11-03 14:48:51 -0400
committerpommicket <pommicket@gmail.com>2022-11-03 14:48:51 -0400
commit809ce7cdc95cd602223333b53761735238b5b48a (patch)
tree59f2ddd7cfcad5deae31761284518829297c470f /command.c
parent609cdb6f0cc9f6f5d86366fbf60364f463cba551 (diff)
custom bg-shader
Diffstat (limited to 'command.c')
-rw-r--r--command.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/command.c b/command.c
index 51c5c24..ce447ed 100644
--- a/command.c
+++ b/command.c
@@ -203,6 +203,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();
if (buffer) {
if (buffer_is_untitled(buffer)) {
command_execute(ted, CMD_SAVE_AS, 1);
@@ -212,11 +213,13 @@ void command_execute(Ted *ted, Command c, i64 argument) {
}
break;
case CMD_SAVE_AS:
+ ted->last_save_time = time_get_seconds();
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_save_all(ted);
break;
case CMD_RELOAD_ALL: