@@ -563,7 +563,9 @@ impl Application {
563 let mut stdout = stdout();
563 let mut stdout = stdout();
564 // reset cursor shape
564 // reset cursor shape
565 write!(stdout, "\x1B[2 q")?;
565 write!(stdout, "\x1B[2 q")?;
566+ // Ignore errors on disabling, this might trigger on windows if we call
567+ // disable without calling enable previously
566− execute!(stdout, DisableMouseCapture)?;
568+ let _ = execute!(stdout, DisableMouseCapture);
567 execute!(stdout, terminal::LeaveAlternateScreen)?;
569 execute!(stdout, terminal::LeaveAlternateScreen)?;
568 terminal::disable_raw_mode()?;
570 terminal::disable_raw_mode()?;