fix: trigger clip three times on paste to ensure stopped state

Co-authored-by: aider (deepseek/deepseek-coder) <aider@aider.chat>
This commit is contained in:
Loic Coenen
2026-05-01 19:38:46 +00:00
parent 0056dce9af
commit 8066204e59
2 changed files with 4 additions and 2 deletions

View File

@@ -871,7 +871,7 @@ void test_paste_clips(void) {
assert(row_offset == 2);
assert(col_offset == 2);
// Simulate paste: trigger clip twice to go empty -> recording -> stopped
// Simulate paste: trigger clip three times to go empty -> recording -> looping -> stopped
int new_row = first_yanked_row + row_offset;
int new_col = first_yanked_col + col_offset;
int new_clip_idx = new_row * 8 + new_col;
@@ -880,6 +880,7 @@ void test_paste_clips(void) {
assert(new_col == 3);
assert(new_clip_idx == 27);
engine_trigger_clip(engine, new_clip_idx);
engine_trigger_clip(engine, new_clip_idx);
engine_trigger_clip(engine, new_clip_idx);
engine_process_commands(engine);