1
0
mirror of https://github.com/rust-lang/rustlings.git synced 2024-09-18 11:31:35 +02:00

Lower the maximum scroll padding

This commit is contained in:
mo8it 2024-08-25 23:54:18 +02:00
parent a1f0eaab54
commit 631f2db1a3

View File

@ -12,7 +12,7 @@ use std::{
use crate::{app_state::AppState, exercise::Exercise, term::progress_bar, MAX_EXERCISE_NAME_LEN};
const MAX_SCROLL_PADDING: usize = 8;
const MAX_SCROLL_PADDING: usize = 5;
// +1 for column padding.
const SPACE: &[u8] = &[b' '; MAX_EXERCISE_NAME_LEN + 1];