mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-23 16:58:09 +02:00
Fix off by one in hyperlink extent
This commit is contained in:
@@ -63,7 +63,10 @@ func (r RenderLines) InRectangle(
|
||||
if hyperlink_state.action == "" {
|
||||
return false
|
||||
}
|
||||
mouse_state.AddCellRegion(hyperlink_state.action, hyperlink_state.start_x, hyperlink_state.start_y, x, y, on_click...)
|
||||
if y == hyperlink_state.start_y && x <= hyperlink_state.start_x {
|
||||
return false
|
||||
}
|
||||
mouse_state.AddCellRegion(hyperlink_state.action, hyperlink_state.start_x, hyperlink_state.start_y, max(0, x-1), y, on_click...)
|
||||
hyperlink_state.action = ``
|
||||
return true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user