Skip to content

Commit

Permalink
Increases the preview_cushion to 5 like in vim
Browse files Browse the repository at this point in the history
  • Loading branch information
ElSamhaa committed Apr 8, 2024
1 parent 5240b39 commit 95621af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/directory_buffer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 95621af

Please sign in to comment.