mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-01 16:33:06 +01:00
Allow default word selection when not using better selection
Double-click in editor will just fall back to default word selection when NOT using enhanced word selection.
This commit is contained in:
parent
ab06a01062
commit
596f085fa5
@ -720,7 +720,7 @@ CodeMirror.registerHelper('fold', 'ubo-static-filtering', (( ) => {
|
||||
end = ch + r[0].length;
|
||||
}
|
||||
} else if ( /\bvariable\b/.test(token) ) {
|
||||
const l = /[#.]?[a-z0-9_-]+$/i.exec(s.slice(0, ch));
|
||||
const l = /[#.][a-z0-9_-]+$/i.exec(s.slice(0, ch));
|
||||
const r = /^[a-z0-9_-]+/i.exec(s.slice(ch));
|
||||
if ( l && r ) {
|
||||
beg = l.index;
|
||||
|
Loading…
Reference in New Issue
Block a user