From 51f5905a22d19139a919c655a5e33885af89c7bb Mon Sep 17 00:00:00 2001 From: Loic Coenen Date: Fri, 1 May 2026 19:34:14 +0000 Subject: [PATCH] fix: add UIMode enum to test_tui.c and remove unused yank_count variables Co-authored-by: aider (deepseek/deepseek-coder) --- test_tui.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/test_tui.c b/test_tui.c index c3e3d56..8b04f21 100644 --- a/test_tui.c +++ b/test_tui.c @@ -6,6 +6,13 @@ #include #include "tui.h" +// Mode definitions (mirrored from tui.c) +typedef enum { + MODE_NORMAL, + MODE_VISUAL, + MODE_MOVE +} UIMode; + // Test helper static Engine *create_test_engine(void) { Engine *engine = (Engine *)calloc(1, sizeof(Engine)); @@ -851,7 +858,6 @@ void test_paste_clips(void) { // Simulate yanking clip at position (1, 1) = clip 9 int yank_buffer[] = {9}; - int yank_count = 1; int selected_row = 3, selected_col = 3; // Paste at position (3, 3) = clip 27 // Calculate offset @@ -889,7 +895,6 @@ void test_paste_bounds_checking(void) { // Yank clip at position (7, 7) = clip 63 (bottom-right) int yank_buffer[] = {63}; - int yank_count = 1; int selected_row = 0, selected_col = 0; // Paste at top-left // Calculate offset