Verified Commit 13ac94ee authored by Jakob Moser's avatar Jakob Moser
Browse files

Make runUnexecutedCommand more specific

parent 0ebfc5e1
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -221,7 +221,8 @@ export async function runCommand(command) {
 * press enter, and wait for it to complete.
 */
export async function runUnexecutedCommand() {
    if(getCurrentPrompt() === null) {
    const lastInteraction = getTerminalContents(true).at(-1)
    if(lastInteraction.prompt && lastInteraction.input?.trim()) {
        await pressEnter()
    }
}