Fix hover underline remaining on screen when screen is scrolled

This commit is contained in:
Kovid Goyal 2025-03-31 10:47:25 +05:30
parent d567e31d57
commit 72a1aabafd
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C
2 changed files with 9 additions and 3 deletions

View file

@ -100,12 +100,15 @@ Detailed list of changes
- Fix a regression in the previous release that caused rendering of emoji using
the VS16 variation selector to fail with some fonts (:iss:`8495`)
- Fix a regression that caused tab bar margins to not be properly blanked when
- Fix a regression in 0.40.0 that caused tab bar margins to not be properly blanked when
the tab bar is at the bottom (:iss:`8494`)
- Wayland: panel kitten: Fix incorrect initial font size on compositors such as Hyprland
that set scale late in the window creation process (:iss:`8496`)
- Fix a regression in 0.40.1 that caused hyperlink underline on hover to remain
on screen when the screen is scrolled
0.41.0 [2025-03-29]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

View file

@ -319,7 +319,9 @@ index_selection(const Screen *self, Selections *selections, bool up) {
} \
INDEX_GRAPHICS(1) \
self->is_dirty = true; \
index_selection(self, &self->selections, false);
index_selection(self, &self->selections, false); \
clear_selection(&self->url_ranges);
static void
nuke_in_line(CPUCell *cp, GPUCell *gp, index_type start, index_type x_limit, char_type ch) {
@ -1996,7 +1998,8 @@ screen_cursor_to_column(Screen *self, unsigned int column) {
} \
linebuf_clear_line(self->linebuf, bottom, true); \
self->is_dirty = true; \
index_selection(self, &self->selections, true);
index_selection(self, &self->selections, true); \
clear_selection(&self->url_ranges);
void
screen_index(Screen *self) {