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