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.
This commit is contained in:
parent
e669be7b81
commit
cdadcd7543
|
|
@ -154,7 +154,7 @@ function selectWordAt(textEdit, mouseX, mouseY) {
|
||||||
if (cursorPos < 0 || cursorPos > text.length) return
|
if (cursorPos < 0 || cursorPos > text.length) return
|
||||||
|
|
||||||
function isword(ch) {
|
function isword(ch) {
|
||||||
return /[A-Za-z0-9_]/.test(ch)
|
return /[A-Za-z0-9]/.test(ch)
|
||||||
}
|
}
|
||||||
|
|
||||||
var start = cursorPos
|
var start = cursorPos
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue