diff --git a/lib/ace/selection.js b/lib/ace/selection.js index 698f2451..0288fa24 100644 --- a/lib/ace/selection.js +++ b/lib/ace/selection.js @@ -442,20 +442,6 @@ var Selection = function(session) { ); 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); // move the cursor and update the desired column