aboutsummaryrefslogtreecommitdiff
path: root/vendor/libghostty-vt/src/terminal/selection_codepoints.zig
diff options
context:
space:
mode:
authorOgulcan Celik <ogulcancelik@gmail.com>2026-06-01 23:05:23 +0300
committerOgulcan Celik <ogulcancelik@gmail.com>2026-06-01 23:05:51 +0300
commit5bd21b7ed468b5ff4d1a5b2ed7e211f401eb138a (patch)
tree672fa4625cca0ecb3e9376fc7f8e33d7b0e9deef /vendor/libghostty-vt/src/terminal/selection_codepoints.zig
parent32abb3776668ee768200019c170956f67fe33a86 (diff)
chore: update libghostty vendor
refs #276
Diffstat (limited to 'vendor/libghostty-vt/src/terminal/selection_codepoints.zig')
-rw-r--r--vendor/libghostty-vt/src/terminal/selection_codepoints.zig31
1 files changed, 31 insertions, 0 deletions
diff --git a/vendor/libghostty-vt/src/terminal/selection_codepoints.zig b/vendor/libghostty-vt/src/terminal/selection_codepoints.zig
new file mode 100644
index 00000000..4c318403
--- /dev/null
+++ b/vendor/libghostty-vt/src/terminal/selection_codepoints.zig
@@ -0,0 +1,31 @@
+// This file contains various default word boundaries used for
+// selection logic. We put it in a separate file so that different
+// subsystems can import it without introducing a number of
+// dependencies.
+
+/// Default boundary characters for word selection: ` \t'"│`|:;,()[]{}<>$`
+pub const default_word_boundaries = [_]u21{
+ 0, // null
+ ' ', // space
+ '\t', // tab
+ '\'', // single quote
+ '"', // double quote
+ '│', // U+2502 box drawing
+ '`', // backtick
+ '|', // pipe
+ ':', // colon
+ ';', // semicolon
+ ',', // comma
+ '(', // left paren
+ ')', // right paren
+ '[', // left bracket
+ ']', // right bracket
+ '{', // left brace
+ '}', // right brace
+ '<', // less than
+ '>', // greater than
+ '$', // dollar
+};
+
+/// Default whitespace characters trimmed from line selections.
+pub const default_line_whitespace = [_]u21{ 0, ' ', '\t' };