Increases the preview_cushion to 5 like in vim

This commit is contained in:
Ahmed ElSamhaa 2024-04-08 03:16:43 +03:00
parent 5240b3904b
commit 95621af9eb

View File

@ -11,7 +11,7 @@ pub struct ScrollState {
impl ScrollState {
/* The number of visible next lines when scrolling towards either ends of the view port */
pub const PREVIEW_CUSHION: usize = 3;
pub const PREVIEW_CUSHION: usize = 5;
pub fn set_focus(&mut self, current_focus: usize) {
self.last_focus = Some(self.current_focus);