Modified restore_term fn in application.rs. Changed '\x1B[2 q' to '\x1B[0 q' to restore cursor to user default after exiting helix (#3289)
This commit is contained in:
parent
11367488ac
commit
d693b37445
1 changed files with 1 additions and 1 deletions
|
@ -801,7 +801,7 @@ impl Application {
|
||||||
fn restore_term(&mut self) -> Result<(), Error> {
|
fn restore_term(&mut self) -> Result<(), Error> {
|
||||||
let mut stdout = stdout();
|
let mut stdout = stdout();
|
||||||
// reset cursor shape
|
// 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
|
// Ignore errors on disabling, this might trigger on windows if we call
|
||||||
// disable without calling enable previously
|
// disable without calling enable previously
|
||||||
let _ = execute!(stdout, DisableMouseCapture);
|
let _ = execute!(stdout, DisableMouseCapture);
|
||||||
|
|
Loading…
Add table
Reference in a new issue