Issue 489 Initial
This commit is contained in:
parent
7eb76db726
commit
3451ab1b8f
1 changed files with 8 additions and 1 deletions
|
|
@ -440,7 +440,14 @@ var Selection = function(session) {
|
|||
this.selectionLead.row,
|
||||
this.selectionLead.column
|
||||
);
|
||||
var screenCol = (chars == 0 && this.$desiredColumn) || screenPos.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 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