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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user