mirror of
https://github.com/qvacua/vimr.git
synced 2024-11-29 12:04:11 +03:00
fix race on lcd / cwd
must be done in main thread for access to NSTextView’s string rep
This commit is contained in:
parent
16929f2415
commit
5406bc54af
@ -508,7 +508,9 @@ extension NvimView {
|
|||||||
|
|
||||||
self.bridgeLogger.debug(cwd)
|
self.bridgeLogger.debug(cwd)
|
||||||
self._cwd = URL(fileURLWithPath: cwd)
|
self._cwd = URL(fileURLWithPath: cwd)
|
||||||
|
gui.async { [self] in
|
||||||
self.tabBar?.cwd = cwd
|
self.tabBar?.cwd = cwd
|
||||||
|
}
|
||||||
self.eventsSubject.onNext(.cwdChanged)
|
self.eventsSubject.onNext(.cwdChanged)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user