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:
parent
372a1b4202
commit
d75dfc14cb
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user