diff --git a/packages/tui/src/components/input.ts b/packages/tui/src/components/input.ts index e5c3b4f7..ff982c4e 100644 --- a/packages/tui/src/components/input.ts +++ b/packages/tui/src/components/input.ts @@ -420,7 +420,7 @@ export class Input implements Component, Focusable { this.pushUndo(); // Clean the pasted text - remove newlines and carriage returns - const cleanText = pastedText.replace(/\r\n/g, "").replace(/\r/g, "").replace(/\n/g, ""); + const cleanText = pastedText.replace(/\r\n/g, "").replace(/\r/g, "").replace(/\n/g, "").replace(/\t/g, " "); // Insert at cursor position this.value = this.value.slice(0, this.cursor) + cleanText + this.value.slice(this.cursor);