mirror of
https://github.com/ilyakooo0/helix.git
synced 2024-12-01 19:58:12 +03:00
Ignore errors when disabling mouse capture
This commit is contained in:
parent
9688cb74a1
commit
e9b23c29d8
@ -563,7 +563,9 @@ impl Application {
|
||||
let mut stdout = stdout();
|
||||
// reset cursor shape
|
||||
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)?;
|
||||
terminal::disable_raw_mode()?;
|
||||
Ok(())
|
||||
|
Loading…
Reference in New Issue
Block a user