Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Kacperacy committed Jun 2, 2024
1 parent 8dd820b commit 068dcd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ impl App {
}
} else if self.cursor_position.y > 0 {
self.cursor_position.y -= 1;
let len = self.content[pos.y].len();
let len = self.content[pos.y - 1].len();
self.cursor_position.x = min(len, self.window_size.width.into());
self.cursor_offset.x = len - self.cursor_position.x;
}
Expand Down

0 comments on commit 068dcd4

Please sign in to comment.