mirror of https://github.com/gorhill/uBlock.git
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],
|
var range = details.ranges[0],
|
||||||
lineFrom = range.anchor.line,
|
lineFrom = range.anchor.line,
|
||||||
lineTo = range.head.line;
|
lineTo = range.head.line;
|
||||||
|
if ( lineTo === lineFrom ) { return; }
|
||||||
if ( range.head.ch !== 0 ) { lineTo += 1; }
|
if ( range.head.ch !== 0 ) { lineTo += 1; }
|
||||||
if ( lineFrom !== vp.from || lineTo !== vp.to ) { return; }
|
if ( lineFrom !== vp.from || lineTo !== vp.to ) { return; }
|
||||||
details.update([
|
details.update([
|
||||||
|
|
Loading…
Reference in New Issue