Pass tabText into EditSession explicitly on construction

This commit is contained in:
Nathan Sobo
2012-06-13 11:13:41 -06:00
parent 09a05141d0
commit 4ccf976501
4 changed files with 17 additions and 8 deletions

View File

@@ -354,7 +354,13 @@ class Editor extends View
index = @editSessionIndexForBuffer(buffer)
unless index?
index = @editSessions.length
@editSessions.push(new EditSession(editor: this, buffer: buffer, autoIndent: @autoIndent, softTabs: @softTabs))
@editSessions.push(new EditSession(
editor: this
buffer: buffer
tabText: @tabText
autoIndent: @autoIndent
softTabs: @softTabs
))
@setActiveEditSessionIndex(index)