From 88f0fd6c00be7eba5efdc3dd5697c4ea5f719145 Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Wed, 28 Mar 2018 09:43:48 -0400 Subject: [PATCH] avoid spurious select-all --- src/js/dashboard-common.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/js/dashboard-common.js b/src/js/dashboard-common.js index efe7d6099..d5f2768f8 100644 --- a/src/js/dashboard-common.js +++ b/src/js/dashboard-common.js @@ -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([