on master help sign in
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)
d693b37Eric K
helix-term/src/application.rs+1−1
@@ -801,7 +801,7 @@ impl Application {
801 fn restore_term(&mut self) -> Result<(), Error> {
801 fn restore_term(&mut self) -> Result<(), Error> {
802 let mut stdout = stdout();
802 let mut stdout = stdout();
803 // reset cursor shape
803 // reset cursor shape
804− write!(stdout, "\x1B[2 q")?;
804+ write!(stdout, "\x1B[0 q")?;
805 // Ignore errors on disabling, this might trigger on windows if we call
805 // Ignore errors on disabling, this might trigger on windows if we call
806 // disable without calling enable previously
806 // disable without calling enable previously
807 let _ = execute!(stdout, DisableMouseCapture);
807 let _ = execute!(stdout, DisableMouseCapture);