revert fix
This commit is contained in:
parent
99446c7759
commit
3930d6da0f
1 changed files with 0 additions and 14 deletions
|
|
@ -442,20 +442,6 @@ var Selection = function(session) {
|
||||||
);
|
);
|
||||||
|
|
||||||
var screenCol = (chars === 0 && this.$desiredColumn) || screenPos.column;
|
var screenCol = (chars === 0 && this.$desiredColumn) || screenPos.column;
|
||||||
|
|
||||||
// so here is the deal. First checkout what the content of ur current and ur target line is
|
|
||||||
var currentLine = (this.session.getLines(screenPos.row, screenPos.row) || [""])[0],
|
|
||||||
targetLine = (this.session.getLines(screenPos.row + rows, screenPos.row + rows) || [""])[0];
|
|
||||||
|
|
||||||
// if you are at the EOL of your current line, and your targetline is all whitespace
|
|
||||||
if (currentLine && targetLine &&
|
|
||||||
currentLine.length === screenPos.column && targetLine.match(/^\s*$/)) {
|
|
||||||
// set the new column to the EOL of the target line
|
|
||||||
screenCol = this.session.getTabString(targetLine).length;
|
|
||||||
// update the chars so we are sure that the desired column will be updated
|
|
||||||
chars = 1;
|
|
||||||
};
|
|
||||||
|
|
||||||
var docPos = this.session.screenToDocumentPosition(screenPos.row + rows, screenCol);
|
var docPos = this.session.screenToDocumentPosition(screenPos.row + rows, screenCol);
|
||||||
|
|
||||||
// move the cursor and update the desired column
|
// move the cursor and update the desired column
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue