mirror of https://github.com/helix-editor/helix
Ignore errors when disabling mouse capture
parent
9688cb74a1
commit
e9b23c29d8
|
@ -563,7 +563,9 @@ impl Application {
|
||||||
let mut stdout = stdout();
|
let mut stdout = stdout();
|
||||||
// reset cursor shape
|
// reset cursor shape
|
||||||
write!(stdout, "\x1B[2 q")?;
|
write!(stdout, "\x1B[2 q")?;
|
||||||
execute!(stdout, DisableMouseCapture)?;
|
// Ignore errors on disabling, this might trigger on windows if we call
|
||||||
|
// disable without calling enable previously
|
||||||
|
let _ = execute!(stdout, DisableMouseCapture);
|
||||||
execute!(stdout, terminal::LeaveAlternateScreen)?;
|
execute!(stdout, terminal::LeaveAlternateScreen)?;
|
||||||
terminal::disable_raw_mode()?;
|
terminal::disable_raw_mode()?;
|
||||||
Ok(())
|
Ok(())
|
||||||
|
|
Loading…
Reference in New Issue