mirror of
https://github.com/atom/atom.git
synced 2026-02-11 15:14:59 -05:00
Tell text-buffer to ask about destroying buffers for deleted files
This commit is contained in:
@@ -107,8 +107,10 @@ class TextEditorElement extends HTMLElement
|
||||
@model ? @buildModel()
|
||||
|
||||
buildModel: ->
|
||||
newBuffer = new TextBuffer(@textContent)
|
||||
newBuffer.setConfigCallbacks(-> atom.config.get('core.closeDeletedFileTabs')) if newBuffer.setConfigCallbacks?
|
||||
@setModel(@workspace.buildTextEditor(
|
||||
buffer: new TextBuffer(@textContent)
|
||||
buffer: newBuffer
|
||||
softWrapped: false
|
||||
tabLength: 2
|
||||
softTabs: true
|
||||
|
||||
Reference in New Issue
Block a user