Expand selection linewise after triple-click (dragging or shift-click)

This commit is contained in:
Nathan Sobo
2012-10-30 14:48:33 -06:00
parent c55332a3a4
commit 007e032224
3 changed files with 39 additions and 7 deletions

View File

@@ -134,7 +134,10 @@ class Buffer
@lines[row].length
rangeForRow: (row) ->
new Range([row, 0], [row, @lineLengthForRow(row)])
if row == @getLastRow()
new Range([row, 0], [row, @lineLengthForRow(row)])
else
new Range([row, 0], [row + 1, 0])
getLineCount: ->
@getLines().length