Fix PageUp/PageDown commands, which were badly broken on soft-wrapped documents
This commit is contained in:
parent
3d1469e330
commit
66562856c8
3 changed files with 42 additions and 27 deletions
|
|
@ -408,6 +408,15 @@ var Selection = function(session) {
|
|||
this.$updateDesiredColumn(this.selectionLead.column);
|
||||
};
|
||||
|
||||
this.moveCursorToScreen = function(row, column, preventUpdateDesiredColumn) {
|
||||
if (this.session.getUseWrapMode()) {
|
||||
var pos = this.session.screenToDocumentPosition(row, column);
|
||||
row = pos.row;
|
||||
column = pos.column;
|
||||
}
|
||||
this.moveCursorTo(row, column, preventUpdateDesiredColumn);
|
||||
};
|
||||
|
||||
}).call(Selection.prototype);
|
||||
|
||||
exports.Selection = Selection;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue