1
0
Fork 0
mirror of https://github.com/alacritty/alacritty.git synced 2024-11-25 14:05:41 -05:00

Fix ScrollHalfPageUp vi cursor motion regression

This regression was introduced in 3bd5ac2.

Co-authored-by: Christian Duerr <contact@christianduerr.com>
This commit is contained in:
a5ob7r 2021-06-16 17:55:15 +09:00 committed by GitHub
parent 3e867a0560
commit 6f135d713a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View file

@ -15,6 +15,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- Regression in rendering performance with dense grids since 0.6.0
- Crash/Freezes with partially visible fullwidth characters due to alt screen resize
- Incorrect vi cursor position after invoking `ScrollPageHalfUp` action
## 0.8.0

View file

@ -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);