Remove @autoIndent from Project and EditSession

This commit is contained in:
Corey Johnson
2013-01-09 15:22:37 -08:00
parent d5a23f770f
commit 261a8aae2d
3 changed files with 1 additions and 8 deletions

View File

@@ -33,11 +33,10 @@ class EditSession
anchorRanges: null
cursors: null
selections: null
autoIndent: false # TODO: re-enabled auto-indent after fixing the rest of tokenization
softTabs: true
softWrap: false
constructor: ({@project, @buffer, tabLength, @autoIndent, softTabs, @softWrap }) ->
constructor: ({@project, @buffer, tabLength, softTabs, @softWrap }) ->
@softTabs = @buffer.usesSoftTabs() ? softTabs ? true
@languageMode = new LanguageMode(this, @buffer.getExtension())
@displayBuffer = new DisplayBuffer(@buffer, { @languageMode, tabLength })

View File

@@ -80,7 +80,6 @@ class Editor extends View
buffer: new Buffer()
softWrap: false
tabLength: 2
autoIndent: false
softTabs: true
@editSessions.push editSession

View File

@@ -16,7 +16,6 @@ class Project
new Project(state.path, state.grammarOverridesByPath)
tabLength: 2
autoIndent: true
softTabs: true
softWrap: false
rootDirectory: null
@@ -91,9 +90,6 @@ class Project
relativize: (fullPath) ->
fullPath.replace(@getPath(), "").replace(/^\//, '')
getAutoIndent: -> @autoIndent
setAutoIndent: (@autoIndent) ->
getSoftTabs: -> @softTabs
setSoftTabs: (@softTabs) ->
@@ -114,7 +110,6 @@ class Project
defaultEditSessionOptions: ->
tabLength: @tabLength
autoIndent: @getAutoIndent()
softTabs: @getSoftTabs()
softWrap: @getSoftWrap()