autoIndent is enabled by default.

This commit is contained in:
Corey Johnson 2012-03-06 16:34:59 -08:00
parent 0737529f07
commit 0703578820
2 changed files with 2 additions and 2 deletions

View File

@ -12,6 +12,7 @@ describe "Editor", ->
beforeEach ->
buffer = new Buffer(require.resolve('fixtures/sample.js'))
editor = new Editor
editor.autoIndent = false
editor.enableKeymap()
editor.setBuffer(buffer)
@ -462,7 +463,6 @@ describe "Editor", ->
expect(editor.buffer.getLine(2)).toEqual(" ")
editor.insertText("}")
expect(editor.buffer.getLine(2)).toEqual(" }")
expect(editor.getCursorBufferPosition().column).toBe 3
describe "selection", ->

View File

@ -41,7 +41,7 @@ class Editor extends View
@buildCursorAndSelection()
@handleEvents()
@setBuffer(new Buffer)
@autoIndent = false
@autoIndent = true
bindKeys: ->
window.keymap.bindKeys '*:not(.editor *)',