diff --git a/lib/ace/selection.js b/lib/ace/selection.js index 1d76f8b1..0b93b9b5 100644 --- a/lib/ace/selection.js +++ b/lib/ace/selection.js @@ -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); };