mirror of
https://github.com/atom/atom.git
synced 2026-02-03 11:14:59 -05:00
AutoIndent is a config property instead of a syntax property
This commit is contained in:
@@ -158,7 +158,7 @@ class EditSession
|
||||
logScreenLines: (start, end) -> @displayBuffer.logLines(start, end)
|
||||
|
||||
shouldAutoIndent: ->
|
||||
syntax.getProperty(["." + @languageMode.grammar.scopeName], "editor.autoIndent") ? false
|
||||
config.get("editor.autoIndent") ? true
|
||||
|
||||
insertText: (text, options={}) ->
|
||||
options.autoIndent ?= @shouldAutoIndent()
|
||||
|
||||
Reference in New Issue
Block a user