Skip to content

Commit

Permalink
Modified restore_term fn in application.rs. Changed '\x1B[2 q' to '\x…
Browse files Browse the repository at this point in the history
…1B[0 q' to restore cursor to user default after exiting helix (helix-editor#3289)
  • Loading branch information
ericpko authored and thomasskk committed Sep 9, 2022
1 parent cd5884b commit 777ca1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion helix-term/src/application.rs
Original file line number Diff line number Diff line change
Expand Up @@ -801,7 +801,7 @@ impl Application {
fn restore_term(&mut self) -> Result<(), Error> {
let mut stdout = stdout();
// reset cursor shape
write!(stdout, "\x1B[2 q")?;
write!(stdout, "\x1B[0 q")?;
// Ignore errors on disabling, this might trigger on windows if we call
// disable without calling enable previously
let _ = execute!(stdout, DisableMouseCapture);
Expand Down

0 comments on commit 777ca1b

Please sign in to comment.