Skip to content

Commit 777ca1b

Browse files
ericpkothomasskk
authored andcommitted
Modified restore_term fn in application.rs. Changed '\x1B[2 q' to '\x1B[0 q' to restore cursor to user default after exiting helix (helix-editor#3289)
1 parent cd5884b commit 777ca1b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

helix-term/src/application.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -801,7 +801,7 @@ impl Application {
801801
fn restore_term(&mut self) -> Result<(), Error> {
802802
let mut stdout = stdout();
803803
// reset cursor shape
804-
write!(stdout, "\x1B[2 q")?;
804+
write!(stdout, "\x1B[0 q")?;
805805
// Ignore errors on disabling, this might trigger on windows if we call
806806
// disable without calling enable previously
807807
let _ = execute!(stdout, DisableMouseCapture);

0 commit comments

Comments
 (0)