parent
bc599176e0
commit
b74321928c
1 changed files with 1 additions and 8 deletions
|
|
@ -440,14 +440,7 @@ var Selection = function(session) {
|
|||
this.selectionLead.row,
|
||||
this.selectionLead.column
|
||||
);
|
||||
|
||||
var screenCol = (chars === 0 && this.$desiredColumn) || screenPos.column;
|
||||
|
||||
if (this.$lines[screenPos.row].length === screenPos.column &&
|
||||
this.$lines[screenPos.row + rows].match(/^\s*$/)) {
|
||||
screenCol = this.$lines[screenPos.row + rows].length;
|
||||
}
|
||||
|
||||
var screenCol = (chars == 0 && this.$desiredColumn) || screenPos.column;
|
||||
var docPos = this.session.screenToDocumentPosition(screenPos.row + rows, screenCol);
|
||||
this.moveCursorTo(docPos.row, docPos.column + chars, chars == 0);
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue