diff --git a/src/ace/Selection.js b/src/ace/Selection.js index c6dec599..b7232955 100644 --- a/src/ace/Selection.js +++ b/src/ace/Selection.js @@ -17,7 +17,9 @@ ace.Selection = function(doc) { ace.implement(this, ace.MEventEmitter); this.isEmpty = function() { - return (this.selectionAnchor == null); + return (this.selectionAnchor == null || + (this.selectionAnchor.row == this.selectionLead.row && + this.selectionAnchor.column == this.selectionLead.column)); }; this.isMultiLine = function() {