diff options
author | pommicket <pommicket@gmail.com> | 2025-06-16 00:31:23 -0400 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2025-06-16 00:31:31 -0400 |
commit | f62bb21df68ea94d34eb88df09df371a3808e7a0 (patch) | |
tree | 13693cf3ce5330f65c5f6237e6933872891e3be8 /command.c | |
parent | 0afc98b68a13f492ff4fc95d717bc528d7ee2ab2 (diff) |
Fix weirdness with newlines when reloading
Diffstat (limited to 'command.c')
-rw-r--r-- | command.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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; } } |