Update the relative path when the buffer's file moves

This commit is contained in:
Kevin Sawicki
2013-08-22 13:58:31 -07:00
parent 2793ebb5c4
commit 92a80208d3
2 changed files with 30 additions and 0 deletions

View File

@@ -108,6 +108,7 @@ class TextBuffer
@triggerModifiedStatusChanged(@isModified())
@file.on "moved", =>
@state.set('relativePath', @project.relativize(@getPath()))
@trigger "path-changed", this
### Public ###