mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-11-14 04:29:04 +03:00
autoIndent is enabled by default.
This commit is contained in:
parent
0737529f07
commit
0703578820
@ -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", ->
|
||||
|
@ -41,7 +41,7 @@ class Editor extends View
|
||||
@buildCursorAndSelection()
|
||||
@handleEvents()
|
||||
@setBuffer(new Buffer)
|
||||
@autoIndent = false
|
||||
@autoIndent = true
|
||||
|
||||
bindKeys: ->
|
||||
window.keymap.bindKeys '*:not(.editor *)',
|
||||
|
Loading…
Reference in New Issue
Block a user