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:
parent
8147b3885f
commit
53a085f034
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue