diff options
| author | Can Celik <ogulcancelik@gmail.com> | 2026-09-13 23:05:30 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-09-13 23:05:30 +0300 |
| commit | f8e59221cbe5117f8f691a36affa374f5a986a9f (patch) | |
| tree | 3b2792683eff251b061fbbad7343ecffafe91aab /vendor/libghostty-vt.patches.md | |
| parent | 59167658455442ffd2cd5b72a0fa81bcc4bcdf9e (diff) | |
feat: add ctrl-hover highlighting and fix wrapped links (#4074)
refs #1282
Diffstat (limited to 'vendor/libghostty-vt.patches.md')
| -rw-r--r-- | vendor/libghostty-vt.patches.md | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/vendor/libghostty-vt.patches.md b/vendor/libghostty-vt.patches.md index 40645acc..10596292 100644 --- a/vendor/libghostty-vt.patches.md +++ b/vendor/libghostty-vt.patches.md @@ -89,3 +89,46 @@ LIBGHOSTTY_VT_WINDOWS_LIBC=/path/to/windows-libc.txt just windows-lint LIBGHOSTTY_VT_SIMD=false just test-one ghostty just maintenance-test ``` + +## 0005 bounded word selection for wrapped link activation + +status: active + +patch: `vendor/patches/libghostty-vt/0005-bounded-word-selection.patch` + +herdr issue: https://github.com/herdrdev/herdr/issues/1282 + +upstream discussion: not opened + +upstream pr: not opened; related merged PR https://github.com/ghostty-org/ghostty/pull/10132 +implements URL selection in the application layer, not the libghostty C API. + +vendored base: `44f2a44df7e8c4a0c6df3f7d872ef3d7ead88e51` + +local files: + +- `vendor/libghostty-vt/include/ghostty/vt/selection.h` +- `vendor/libghostty-vt/src/lib_vt.zig` +- `vendor/libghostty-vt/src/terminal/Screen.zig` +- `vendor/libghostty-vt/src/terminal/c/main.zig` +- `vendor/libghostty-vt/src/terminal/c/selection.zig` + +reason: Ctrl+click must resolve a wrapped token beyond the visible viewport +without scanning an arbitrarily long logical line. The new, opt-in API shares +one cell-inspection budget across both directions and returns no selection on +exhaustion, never a truncated link. Its scan skips wide-character spacer cells. +The existing word-selection functions and option layouts remain unchanged; +only Herdr's link activation uses the new function. + +remove when: upstream provides an equivalent bounded, wrap-aware selection API +that handles wide-character spacers, and Herdr passes the tests below using it +without this patch. + +verification: + +```sh +just test-one link_target +just test-one link_activation +just test-one ctrl_click +just check +``` |
