Skip to content

Commit 53a3fa8

Browse files
authored
Merge pull request #136 from martindisch/fix-mode-restoration
Fix order of mode restoration
2 parents 91b2033 + 22f691f commit 53a3fa8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/utils/term.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,9 @@ pub fn cleanup(
6464
if cleanup_screen {
6565
// Reverse order of setup.
6666
execute!(out, cursor::Show).map_err(|e| CleanupError::ShowCursor(e.into()))?;
67-
terminal::disable_raw_mode().map_err(|e| CleanupError::DisableRawMode(e.into()))?;
6867
execute!(out, event::DisableMouseCapture)
6968
.map_err(|e| CleanupError::DisableMouseCapture(e.into()))?;
69+
terminal::disable_raw_mode().map_err(|e| CleanupError::DisableRawMode(e.into()))?;
7070
execute!(out, terminal::LeaveAlternateScreen)
7171
.map_err(|e| CleanupError::LeaveAlternateScreen(e.into()))?;
7272
}

0 commit comments

Comments
 (0)