diff --git a/src/app/cursor.coffee b/src/app/cursor.coffee index 7a2b9fde8..58e854417 100644 --- a/src/app/cursor.coffee +++ b/src/app/cursor.coffee @@ -305,7 +305,7 @@ class Cursor endOfWordPosition = null @editSession.scanInBufferRange (options.wordRegex ? @wordRegExp()), scanRange, ({range, stop}) => - if range.start.row > currentBufferPosition.row # and currentBufferPosition.column > 0 + if range.start.row > currentBufferPosition.row # force it to stop at the beginning of each line endOfWordPosition = new Point(range.start.row, 0) else if range.start.isGreaterThan(currentBufferPosition)