1
1
mirror of https://github.com/qvacua/vimr.git synced 2024-11-25 14:13:04 +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:
George Harker 2024-09-26 12:53:19 -07:00
parent 16929f2415
commit 5406bc54af

View File

@ -508,7 +508,9 @@ extension NvimView {
self.bridgeLogger.debug(cwd)
self._cwd = URL(fileURLWithPath: cwd)
self.tabBar?.cwd = cwd
gui.async { [self] in
self.tabBar?.cwd = cwd
}
self.eventsSubject.onNext(.cwdChanged)
}