mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-08-03 22:25:57 +00:00
Fix off by one in hyperlink extent
This commit is contained in:
parent
27a2e3c488
commit
f26b7533c6
1 changed files with 4 additions and 1 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue