aboutsummaryrefslogtreecommitdiff
path: root/alacritty_terminal/src/vi_mode.rs
diff options
context:
space:
mode:
authora5ob7r <12132068+a5ob7r@users.noreply.github.com>2021-06-16 17:55:15 +0900
committerGitHub <noreply@github.com>2021-06-16 08:55:15 +0000
commit6f135d713a742a76b548f2efa179356f702e0743 (patch)
treee067194ed88163622bb56084e691b60724894a19 /alacritty_terminal/src/vi_mode.rs
parent3e867a056018c507d79396cb5c5b4b8309c609c2 (diff)
downloadalacritty-6f135d713a742a76b548f2efa179356f702e0743.tar.gz
alacritty-6f135d713a742a76b548f2efa179356f702e0743.zip
Fix ScrollHalfPageUp vi cursor motion regression
This regression was introduced in 3bd5ac2. Co-authored-by: Christian Duerr <contact@christianduerr.com>
Diffstat (limited to 'alacritty_terminal/src/vi_mode.rs')
-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);