mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Update the relative path when the buffer's file moves
This commit is contained in:
@@ -108,6 +108,7 @@ class TextBuffer
|
||||
@triggerModifiedStatusChanged(@isModified())
|
||||
|
||||
@file.on "moved", =>
|
||||
@state.set('relativePath', @project.relativize(@getPath()))
|
||||
@trigger "path-changed", this
|
||||
|
||||
### Public ###
|
||||
|
||||
Reference in New Issue
Block a user