mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Hitting tab on a line (containing only whitespace) will auto indent the line and set the cursor to the end
This commit is contained in:
@@ -48,6 +48,11 @@ class TokenizedBuffer
|
||||
else
|
||||
null
|
||||
|
||||
indentationForRow: (row) ->
|
||||
state = @stateForRow(row)
|
||||
previousRowText = @buffer.lineForRow(row - 1)
|
||||
@aceMode.getNextLineIndent(state, previousRowText, @tabText)
|
||||
|
||||
autoIndentTextAfterBufferPosition: (text, bufferPosition) ->
|
||||
{ row, column} = bufferPosition
|
||||
state = @stateForRow(row)
|
||||
|
||||
Reference in New Issue
Block a user