mirror of
https://github.com/ratatui-org/ratatui
synced 2024-11-22 20:53:19 +00:00
feat(terminal): log error if failed to show cursor on drop
This commit is contained in:
parent
03bfcde147
commit
fdf3015ad0
1 changed files with 2 additions and 2 deletions
|
@ -48,8 +48,8 @@ where
|
|||
fn drop(&mut self) {
|
||||
// Attempt to restore the cursor state
|
||||
if self.hidden_cursor {
|
||||
if let Err(_) = self.show_cursor() {
|
||||
error!("Failed to show the cursor");
|
||||
if let Err(err) = self.show_cursor() {
|
||||
error!("Failed to show the cursor: {}", err);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue