Skip to content

Commit

Permalink
Merge pull request #136 from martindisch/fix-mode-restoration
Browse files Browse the repository at this point in the history
Fix order of mode restoration
  • Loading branch information
AMythicDev authored Mar 27, 2024
2 parents 91b2033 + 22f691f commit 53a3fa8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/utils/term.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@ pub fn cleanup(
if cleanup_screen {
// Reverse order of setup.
execute!(out, cursor::Show).map_err(|e| CleanupError::ShowCursor(e.into()))?;
terminal::disable_raw_mode().map_err(|e| CleanupError::DisableRawMode(e.into()))?;
execute!(out, event::DisableMouseCapture)
.map_err(|e| CleanupError::DisableMouseCapture(e.into()))?;
terminal::disable_raw_mode().map_err(|e| CleanupError::DisableRawMode(e.into()))?;
execute!(out, terminal::LeaveAlternateScreen)
.map_err(|e| CleanupError::LeaveAlternateScreen(e.into()))?;
}
Expand Down

0 comments on commit 53a3fa8

Please sign in to comment.