From f62bb21df68ea94d34eb88df09df371a3808e7a0 Mon Sep 17 00:00:00 2001 From: pommicket Date: Mon, 16 Jun 2025 00:31:23 -0400 Subject: Fix weirdness with newlines when reloading --- command.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'command.c') 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; } } -- cgit v1.2.3