Skip to content

Commit

Permalink
fix: minibuffer wrapping was on visible lines rather than buffer lines
Browse files Browse the repository at this point in the history
  • Loading branch information
sminez committed Oct 10, 2024
1 parent 7e11171 commit fcfd2b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/editor/minibuffer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ where
}
}
Input::Alt('j') | Input::Arrow(Arrow::Down) => {
if self.selected_line_idx == self.n_visible_lines - 1 {
if self.selected_line_idx == self.b.len_lines() - 1 {
self.b.set_dot(TextObject::BufferStart, 1);
} else {
self.b.set_dot(TextObject::Arr(Arrow::Down), 1);
Expand Down

0 comments on commit fcfd2b7

Please sign in to comment.