From cdadcd754396b12c983b86afc84bb72ffe09b31e Mon Sep 17 00:00:00 2001 From: Levi Neely Date: Thu, 8 Oct 2026 18:07:05 +0200 Subject: [PATCH] gui: _ is word delimiter for double-click selection Double-click on snake_case selects one segment. B3 path expansion still includes _ (isfilec charset), so paths expand fully. --- 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