on master help sign in
Stop Terminal::drop from overriding work of Terminal::restore. (#7931)
ea88677Dillard Robertson
helix-tui/src/terminal.rs−14
@@ -65,20 +65,6 @@ where
65 viewport: Viewport,
65 viewport: Viewport,
66}
66}
67
67
68−impl<B> Drop for Terminal<B>
69−where
70− B: Backend,
71−{
72− fn drop(&mut self) {
73− // Attempt to restore the cursor state
74− if self.cursor_kind == CursorKind::Hidden {
75− if let Err(err) = self.show_cursor(CursorKind::Block) {
76− eprintln!("Failed to show the cursor: {}", err);
77− }
78− }
79− }
80−}
81−
82impl<B> Terminal<B>
68impl<B> Terminal<B>
83where
69where
84 B: Backend,
70 B: Backend,