Skip to content

Commit b0d9618

Browse files
committed
fix: clear screen after editing to prevent selector duplication
1 parent 15c38dc commit b0d9618

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/file-selector.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -478,6 +478,8 @@ export async function showFileSelectorWithPreview(
478478
openInEditor(result.path);
479479
// Clear file content cache so preview reflects edits
480480
fileContentCache.clear();
481+
// Clear screen before re-showing selector to avoid duplication artifacts
482+
process.stdout.write("\x1b[2J\x1b[H");
481483
continue;
482484
}
483485

0 commit comments

Comments
 (0)