fix selection.isEmpty() method
This commit is contained in:
parent
e8546965ee
commit
11ac2173bf
1 changed files with 3 additions and 1 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue