avoid spurious select-all

This commit is contained in:
Raymond Hill 2018-03-28 09:43:48 -04:00
parent 2e521e31a9
commit 88f0fd6c00
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2
1 changed files with 1 additions and 0 deletions

View File

@ -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([