gui: exclude _ from word delimiters

Double-click word selection now stops at underscores, so snake_case
identifiers select one segment at a time.
This commit is contained in:
Levi Neely 2026-10-08 18:00:05 +02:00
parent 8147b3885f
commit 53a085f034
1 changed files with 1 additions and 1 deletions

View File

@ -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