mirror of
https://github.com/notohh/rustlings.git
synced 2024-11-25 14:57:32 -05:00
Show more exercises before the selected one
This commit is contained in:
parent
7c4d33654f
commit
b5fc06bd56
1 changed files with 1 additions and 1 deletions
|
@ -101,7 +101,7 @@ impl<'a> UiState<'a> {
|
||||||
|
|
||||||
let selected = state_file.next_exercise_ind();
|
let selected = state_file.next_exercise_ind();
|
||||||
let table_state = TableState::default()
|
let table_state = TableState::default()
|
||||||
.with_offset(selected.saturating_sub(3))
|
.with_offset(selected.saturating_sub(10))
|
||||||
.with_selected(Some(selected));
|
.with_selected(Some(selected));
|
||||||
|
|
||||||
Self {
|
Self {
|
||||||
|
|
Loading…
Reference in a new issue