Commit 5741f267 authored by David Schnur's avatar David Schnur

Short-circuit when removing all highlights.

There's no need to continue in the function when all highlights are
being cleared.
parent eee071c4
...@@ -2839,6 +2839,7 @@ Licensed under the MIT license. ...@@ -2839,6 +2839,7 @@ Licensed under the MIT license.
if (s == null && point == null) { if (s == null && point == null) {
highlights = []; highlights = [];
triggerRedrawOverlay(); triggerRedrawOverlay();
return;
} }
if (typeof s == "number") if (typeof s == "number")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment