autoIndent is stored as a syntax property

This commit is contained in:
Corey Johnson
2013-01-09 16:26:57 -08:00
parent f5ee676e5e
commit 21fa3e5a0f
2 changed files with 16 additions and 1 deletions

View File

@@ -158,7 +158,7 @@ class EditSession
logScreenLines: (start, end) -> @displayBuffer.logLines(start, end)
shouldAutoIndent: ->
false
syntax.getProperty(["." + @languageMode.grammar.scopeName], "editor.autoIndent") ? false
insertText: (text, options={}) ->
options.autoIndent ?= @shouldAutoIndent()