aboutsummaryrefslogtreecommitdiff
path: root/vendor/libghostty-vt/include
diff options
context:
space:
mode:
authorCan Celik <ogulcancelik@gmail.com>2026-09-13 23:05:30 +0300
committerGitHub <noreply@github.com>2026-09-13 23:05:30 +0300
commitf8e59221cbe5117f8f691a36affa374f5a986a9f (patch)
tree3b2792683eff251b061fbbad7343ecffafe91aab /vendor/libghostty-vt/include
parent59167658455442ffd2cd5b72a0fa81bcc4bcdf9e (diff)
feat: add ctrl-hover highlighting and fix wrapped links (#4074)
refs #1282
Diffstat (limited to 'vendor/libghostty-vt/include')
-rw-r--r--vendor/libghostty-vt/include/ghostty/vt/selection.h15
1 files changed, 15 insertions, 0 deletions
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
@@ -770,6 +770,21 @@ GHOSTTY_API GhosttyResult ghostty_terminal_select_word(
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.
*
* Starting at options->start, this searches toward options->end (inclusive)