aboutsummaryrefslogtreecommitdiff
path: root/alacritty_terminal
diff options
context:
space:
mode:
Diffstat (limited to 'alacritty_terminal')
-rw-r--r--alacritty_terminal/src/vi_mode.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/alacritty_terminal/src/vi_mode.rs b/alacritty_terminal/src/vi_mode.rs
index 54229998..6f370642 100644
--- a/alacritty_terminal/src/vi_mode.rs
+++ b/alacritty_terminal/src/vi_mode.rs
@@ -170,7 +170,7 @@ impl ViModeCursor {
};
// Clamp movement to within visible region.
- let line = (self.point.line - overscroll).grid_clamp(term, Boundary::Cursor);
+ let line = (self.point.line - overscroll).grid_clamp(term, Boundary::Grid);
// Find the first occupied cell after scrolling has been performed.
let target_line = (self.point.line - lines).grid_clamp(term, Boundary::Grid);