1
1
mirror of https://github.com/qvacua/vimr.git synced 2024-12-24 22:33:52 +03:00

Guard against non-cwd-changes...

- Should be fixed.
This commit is contained in:
Tae Won Ha 2016-11-27 10:12:35 +01:00
parent 372a1b4202
commit d75dfc14cb
No known key found for this signature in database
GPG Key ID: E40743465B5B8B44

View File

@ -465,6 +465,12 @@ extension MainWindowComponent {
func cwdChanged() {
let old = self._cwd
self._cwd = self.neoVimView.cwd
// FIXME: This can still happen...
if old == self._cwd {
return
}
self.fileItemService.unmonitor(url: old)
self.fileItemService.monitor(url: self._cwd)