mirror of
https://github.com/atom/atom.git
synced 2026-01-25 23:08:18 -05:00
Merge branch 'master' of github.com:github/atom
This commit is contained in:
@@ -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..]
|
||||
|
||||
Reference in New Issue
Block a user