Skip to content

Commit a3fb59a

Browse files
committed
fix: remove colon from word selection characters
1 parent 9372d9e commit a3fb59a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/selection-manager.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -911,11 +911,11 @@ export class SelectionManager {
911911

912912
// Word characters: letters, numbers, and common path/URL characters
913913
// Matches native Ghostty behavior where double-click selects entire paths
914-
// Includes: / (path sep), . (extensions), ~ (home), : (line numbers), @ (emails)
914+
// Includes: / (path sep), . (extensions), ~ (home), @ (emails), + (encodings)
915915
const isWordChar = (cell: GhosttyCell) => {
916916
if (!cell || cell.codepoint === 0) return false;
917917
const char = String.fromCodePoint(cell.codepoint);
918-
return /[\w\-./~:@+]/.test(char);
918+
return /[\w\-./~@+]/.test(char);
919919
};
920920

921921
// Only return if we're actually on a word character

0 commit comments

Comments
 (0)