This commit is contained in:
Chris Wanstrath 2025-09-21 20:37:51 -07:00
parent 6450ebc24d
commit 4558c157d4

View File

@ -28,6 +28,15 @@ function inputHandler(event: KeyboardEvent) {
runCommand(cmdInput.value)
clearInput()
}
// cleanup
setTimeout(() => {
if (cmdLine.dataset.extended && !cmdInput.value.includes("\n")) {
cmdInput.rows = 1
cmdInput.style.height = "auto"
delete cmdLine.dataset.extended
}
}, 0)
}
function pasteHandler(event: ClipboardEvent) {