Skip to content

Commit 5f4875e

Browse files
committed
Almost done with list
1 parent fd2a8c0 commit 5f4875e

File tree

2 files changed

+135
-103
lines changed

2 files changed

+135
-103
lines changed

src/list.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,7 @@ fn handle_list(app_state: &mut AppState, stdout: &mut StdoutLock) -> Result<()>
5959

6060
list_state.message.push_str(message);
6161
}
62-
KeyCode::Char('r') => {
63-
list_state.reset_selected()?;
64-
}
62+
KeyCode::Char('r') => list_state.reset_selected()?,
6563
KeyCode::Char('c') => {
6664
if list_state.selected_to_current_exercise()? {
6765
return Ok(());
@@ -77,9 +75,7 @@ fn handle_list(app_state: &mut AppState, stdout: &mut StdoutLock) -> Result<()>
7775
MouseEventKind::ScrollUp => list_state.select_previous(),
7876
_ => continue,
7977
},
80-
Event::Resize(width, height) => {
81-
list_state.set_term_size(width, height);
82-
}
78+
Event::Resize(width, height) => list_state.set_term_size(width, height),
8379
// Ignore
8480
Event::FocusGained | Event::FocusLost => continue,
8581
}

0 commit comments

Comments
 (0)