From 53a085f034bfa743d7dc065002b6f1e5cf6a0061 Mon Sep 17 00:00:00 2001 From: Levi Neely Date: Thu, 8 Oct 2026 18:00:05 +0200 Subject: [PATCH] gui: exclude _ from word delimiters Double-click word selection now stops at underscores, so snake_case identifiers select one segment at a time. --- kde/gui/TextSelection.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kde/gui/TextSelection.js b/kde/gui/TextSelection.js index 4e8ae64..a00af3d 100644 --- a/kde/gui/TextSelection.js +++ b/kde/gui/TextSelection.js @@ -154,7 +154,7 @@ function selectWordAt(textEdit, mouseX, mouseY) { if (cursorPos < 0 || cursorPos > text.length) return function isword(ch) { - return /[A-Za-z0-9_]/.test(ch) + return /[A-Za-z0-9]/.test(ch) } var start = cursorPos