summaryrefslogtreecommitdiff
path: root/morphic.js
diff options
context:
space:
mode:
Diffstat (limited to 'morphic.js')
-rw-r--r--morphic.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/morphic.js b/morphic.js
index aca37ed..737e944 100644
--- a/morphic.js
+++ b/morphic.js
@@ -7402,6 +7402,7 @@ StringMorph.prototype.selectionStartSlot = function () {
};
StringMorph.prototype.clearSelection = function () {
+ if (!this.currentlySelecting && this.startMark === 0 && this.endMark === 0) return;
this.currentlySelecting = false;
this.startMark = 0;
this.endMark = 0;