Merge branch 'master' of github.com:github/atom

This commit is contained in:
Nathan Sobo
2012-06-05 10:59:41 -06:00

View File

@@ -136,7 +136,7 @@ class Selection extends View
mode = @editor.getCurrentMode()
row = @cursor.getScreenPosition().row
state = @editor.stateForScreenRow(row)
lineBeforeCursor = @cursor.getCurrentBufferLine()[0..@cursor.getBufferPosition().column]
lineBeforeCursor = @cursor.getCurrentBufferLine()[0...@cursor.getBufferPosition().column]
if text[0] == "\n"
indent = mode.getNextLineIndent(state, lineBeforeCursor, @editor.tabText)
text = text[0] + indent + text[1..]