mirror of
https://github.com/atom/atom.git
synced 2026-02-12 23:55:10 -05:00
Set the initial path after saving in Project.
This commit is contained in:
@@ -166,8 +166,6 @@ class TextEditor extends Model
|
||||
subscribeToBuffer: ->
|
||||
@buffer.retain()
|
||||
@disposables.add @buffer.onDidChangePath =>
|
||||
unless @project.getPaths().length > 0
|
||||
@project.setPaths([path.dirname(@getPath())])
|
||||
@emitter.emit 'did-change-title', @getTitle()
|
||||
@emitter.emit 'did-change-path', @getPath()
|
||||
@disposables.add @buffer.onDidChangeEncoding =>
|
||||
|
||||
Reference in New Issue
Block a user