From f8e59221cbe5117f8f691a36affa374f5a986a9f Mon Sep 17 00:00:00 2001 From: Can Celik Date: Sun, 13 Sep 2026 23:05:30 +0300 Subject: feat: add ctrl-hover highlighting and fix wrapped links (#4074) refs #1282 --- vendor/libghostty-vt/include/ghostty/vt/selection.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'vendor/libghostty-vt/include') diff --git a/vendor/libghostty-vt/include/ghostty/vt/selection.h b/vendor/libghostty-vt/include/ghostty/vt/selection.h index 0158965e..3e557ef0 100644 --- a/vendor/libghostty-vt/include/ghostty/vt/selection.h +++ b/vendor/libghostty-vt/include/ghostty/vt/selection.h @@ -769,6 +769,21 @@ GHOSTTY_API GhosttyResult ghostty_terminal_select_word( const GhosttyTerminalSelectWordOptions* options, GhosttySelection* out_selection); +/** + * Derive a word selection with a shared forward/backward cell inspection limit. + * + * Like ghostty_terminal_select_word(), but returns GHOSTTY_NO_VALUE if + * max_cells is zero or the search exhausts that budget. No partial selection + * is returned. The existing options structure and unbounded API are unchanged. + * + * @ingroup selection + */ +GHOSTTY_API GhosttyResult ghostty_terminal_select_word_bounded( + GhosttyTerminal terminal, + const GhosttyTerminalSelectWordOptions* options, + size_t max_cells, + GhosttySelection* out_selection); + /** * Derive the nearest word selection snapshot between two terminal grid refs. * -- cgit v1.2.3