aboutsummaryrefslogtreecommitdiff
path: root/helix-term
diff options
context:
space:
mode:
authorEric K2022-08-02 01:05:45 +0000
committerGitHub2022-08-02 01:05:45 +0000
commitd693b374454ed24ca143121374f9499cc23a52c8 (patch)
treef75426db58b12fd2b83685f7cff1cb66615adf7a /helix-term
parent11367488ac512241b61c6896bfd5d5d32e981b14 (diff)
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)
Diffstat (limited to 'helix-term')
-rw-r--r--helix-term/src/application.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/helix-term/src/application.rs b/helix-term/src/application.rs
index 737b1cad..50e72cf7 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);