fix off by one bug in selection
This commit is contained in:
parent
92b0339178
commit
34c182705d
1 changed files with 1 additions and 1 deletions
|
|
@ -345,7 +345,7 @@ ace.Selection = function(doc) {
|
|||
var pos = {};
|
||||
|
||||
if (row >= this.doc.getLength()) {
|
||||
pos.row = this.doc.getLength() - 1;
|
||||
pos.row = Math.max(0, this.doc.getLength() - 1);
|
||||
pos.column = this.doc.getLine(pos.row).length;
|
||||
}
|
||||
else if (row < 0) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue