fix editor.removelines on last line
This commit is contained in:
parent
6af74c7d20
commit
85ce847fab
1 changed files with 5 additions and 1 deletions
|
|
@ -822,7 +822,11 @@ var Editor =function(renderer, session) {
|
|||
return;
|
||||
|
||||
var rows = this.$getSelectedRows();
|
||||
this.session.remove(new Range(rows.first, 0, rows.last+1, 0));
|
||||
if (rows.last == 0 || rows.last+1 < this.session.getLength())
|
||||
var range = new Range(rows.first, 0, rows.last+1, 0)
|
||||
else
|
||||
var range = new Range(rows.first-1, 0, rows.last, this.session.getLine(rows.last));
|
||||
this.session.remove(range);
|
||||
this.clearSelection();
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue