1
0
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:
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

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