diff --git a/src/app/selection.coffee b/src/app/selection.coffee index 95496dcbc..d0123566b 100644 --- a/src/app/selection.coffee +++ b/src/app/selection.coffee @@ -87,7 +87,8 @@ class Selection @editSession.buffer.getTextInRange(@getBufferRange()) clear: -> - @anchor?.destroy() + return unless @anchor + @anchor.destroy() @anchor = null @screenRangeChanged()