fix selection.isEmpty() method

This commit is contained in:
Fabian Jakobs 2010-04-29 14:48:22 +02:00
commit 11ac2173bf

View file

@ -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() {