mirror of
https://github.com/gorhill/uBlock.git
synced 2024-09-02 09:09:38 +02:00
avoid spurious select-all
This commit is contained in:
parent
2e521e31a9
commit
88f0fd6c00
@ -133,6 +133,7 @@ self.uBlockDashboard.patchCodeMirrorEditor = (function() {
|
||||
var range = details.ranges[0],
|
||||
lineFrom = range.anchor.line,
|
||||
lineTo = range.head.line;
|
||||
if ( lineTo === lineFrom ) { return; }
|
||||
if ( range.head.ch !== 0 ) { lineTo += 1; }
|
||||
if ( lineFrom !== vp.from || lineTo !== vp.to ) { return; }
|
||||
details.update([
|
||||
|
Loading…
Reference in New Issue
Block a user