summaryrefslogtreecommitdiff
path: root/command.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2025-06-16 00:31:23 -0400
committerpommicket <pommicket@gmail.com>2025-06-16 00:31:31 -0400
commitf62bb21df68ea94d34eb88df09df371a3808e7a0 (patch)
tree13693cf3ce5330f65c5f6237e6933872891e3be8 /command.c
parent0afc98b68a13f492ff4fc95d717bc528d7ee2ab2 (diff)
Fix weirdness with newlines when reloading
Diffstat (limited to 'command.c')
-rw-r--r--command.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/command.c b/command.c
index 4f8e7ea..d6e7f40 100644
--- a/command.c
+++ b/command.c
@@ -110,6 +110,7 @@ static CommandName command_names[] = {
{"indent-with-spaces", CMD_INDENT_WITH_SPACES},
{"indent-with-tabs", CMD_INDENT_WITH_TABS},
{"set-tab-width", CMD_SET_TAB_WIDTH},
+ {"debug-print-undo-history", CMD_DEBUG_PRINT_UNDO_HISTORY},
};
static_assert_if_possible(arr_count(command_names) == CMD_COUNT)
@@ -735,5 +736,9 @@ void command_execute_ex(Ted *ted, Command c, const CommandArgument *full_argumen
if (argument >= 1 && argument < 256) {
buffer_set_manual_tab_width(buffer, (u8)argument);
}
+ break;
+ case CMD_DEBUG_PRINT_UNDO_HISTORY:
+ buffer_print_undo_history(buffer);
+ break;
}
}