From d693b374454ed24ca143121374f9499cc23a52c8 Mon Sep 17 00:00:00 2001 From: Eric K Date: Mon, 1 Aug 2022 21:05:45 -0400 Subject: [PATCH] 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) --- helix-term/src/application.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helix-term/src/application.rs b/helix-term/src/application.rs index 737b1cadf..50e72cf71 100644 --- a/helix-term/src/application.rs +++ b/helix-term/src/application.rs @@ -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);