mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-12-31 10:42:12 +00:00
Fixes #1416 At a high level, the issue is that when mouse capture is enabled (i.e. in neovim), "shift" escapes the capture. So "cmd+shift" is equal to "cmd" which doesn't get sent to the TUI program and so on. For link highlighting which now requires "cmd" (super) is held, we were sending "cmd+shift" to the renderer so we weren't checking for links. So the core of this commit is respecting this scenario and stripping the shift modifier. This commit also found that when the mouse wasn't over a link, we were always checking and highlighting links on line one of the visible screen. This bug is fixed and should also result in a very slight performance improvement on rendering in all cases.