diff options
author | Christian Duerr <contact@christianduerr.com> | 2024-10-05 11:39:06 +0200 |
---|---|---|
committer | Christian Duerr <contact@christianduerr.com> | 2024-10-07 01:02:10 +0200 |
commit | a1ed79bd2c014be49a85e2100ce374b86c8839e8 (patch) | |
tree | 907f1e54be7447f310a9bef38165a5b2a314ea4a /alacritty_terminal | |
parent | 709738f7b50e06166b15be9f28e33a54b159150b (diff) | |
download | alacritty-a1ed79bd2c014be49a85e2100ce374b86c8839e8.tar.gz alacritty-a1ed79bd2c014be49a85e2100ce374b86c8839e8.zip |
Fix highlight invalidation on grid scroll
This fixes an issue where hints highlighted by vi or mouse cursor would
produce an underline on the incorrect line since the highlights only
store the initial match boundaries without accounting for new content
scrolling the terminal.
To accurately invalidate the hint highlights, we use existing damage
information of the current frame. The existing logic to damage hints for
the next frame to account for removal has been changed, since the hints
would otherwise be cleared immediately. Instead we now mark the terminal
as fully damaged for the upcoming frame whenever the hints are cleared.
Closes #7737.
Diffstat (limited to 'alacritty_terminal')
-rw-r--r-- | alacritty_terminal/src/term/cell.rs | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/alacritty_terminal/src/term/cell.rs b/alacritty_terminal/src/term/cell.rs index 81dc1e3a..73077644 100644 --- a/alacritty_terminal/src/term/cell.rs +++ b/alacritty_terminal/src/term/cell.rs @@ -124,9 +124,7 @@ impl ResetDiscriminant<Color> for Cell { #[cfg_attr(feature = "serde", derive(Serialize, Deserialize))] pub struct CellExtra { zerowidth: Vec<char>, - underline_color: Option<Color>, - hyperlink: Option<Hyperlink>, } |