move application reset mode ansi sequence after cmdline execute (#6153)

This commit is contained in:
Darren Schroeder 2022-07-29 08:47:31 -05:00 committed by GitHub
parent 9e24e452a5
commit 3c3614a120
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -312,7 +312,6 @@ pub fn evaluate_repl(
} }
if shell_integration { if shell_integration {
run_ansi_sequence(RESET_APPLICATION_MODE)?;
run_ansi_sequence(PRE_EXECUTE_MARKER)?; run_ansi_sequence(PRE_EXECUTE_MARKER)?;
} }
@ -429,6 +428,7 @@ pub fn evaluate_repl(
// ESC]2;stringBEL -- Set window title to string // ESC]2;stringBEL -- Set window title to string
run_ansi_sequence(&format!("\x1b]2;{}\x07", maybe_abbrev_path))?; run_ansi_sequence(&format!("\x1b]2;{}\x07", maybe_abbrev_path))?;
} }
run_ansi_sequence(RESET_APPLICATION_MODE)?;
} }
} }
Ok(Signal::CtrlC) => { Ok(Signal::CtrlC) => {