mirror of
https://github.com/rust-lang/rustlings.git
synced 2025-11-27 22:38:18 +02:00
Show more exercises before the selected one
This commit is contained in:
@@ -101,7 +101,7 @@ impl<'a> UiState<'a> {
|
||||
|
||||
let selected = state_file.next_exercise_ind();
|
||||
let table_state = TableState::default()
|
||||
.with_offset(selected.saturating_sub(3))
|
||||
.with_offset(selected.saturating_sub(10))
|
||||
.with_selected(Some(selected));
|
||||
|
||||
Self {
|
||||
|
||||
Reference in New Issue
Block a user