Set auto-indent config defaults

This commit is contained in:
Corey Johnson
2013-01-10 10:28:24 -08:00
parent d53572d54d
commit ca41bf0709
3 changed files with 7 additions and 5 deletions

View File

@@ -158,10 +158,10 @@ class EditSession
logScreenLines: (start, end) -> @displayBuffer.logLines(start, end)
shouldAutoIndent: ->
config.get("editor.autoIndent") ? true
config.get("editor.autoIndent")
shouldAutoIndentPastedText: ->
config.get("editor.autoIndentOnPaste") ? false
config.get("editor.autoIndentOnPaste")
insertText: (text, options={}) ->
options.autoIndent ?= @shouldAutoIndent()