mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
buffer triggers a 'path-change' event when a file is moved or removed
This commit is contained in:
@@ -56,6 +56,10 @@ class Buffer
|
||||
|
||||
@file.on "remove", =>
|
||||
@file = null
|
||||
@trigger "path-change", this
|
||||
|
||||
@file.on "move", =>
|
||||
@trigger "path-change", this
|
||||
|
||||
@trigger "path-change", this
|
||||
|
||||
|
||||
Reference in New Issue
Block a user