summaryrefslogtreecommitdiff
path: root/src/list.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/list.rs')
-rw-r--r--src/list.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/list.rs b/src/list.rs
index 15836a4..a246ebc 100644
--- a/src/list.rs
+++ b/src/list.rs
@@ -27,7 +27,7 @@ pub fn list(app_state: &mut AppState) -> Result<()> {
let mut ui_state = UiState::new(app_state);
'outer: loop {
- terminal.draw(|frame| ui_state.draw(frame).unwrap())?;
+ terminal.try_draw(|frame| ui_state.draw(frame).map_err(io::Error::other))?;
let key = loop {
match event::read()? {