Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The following code path effectively turned any
lcd
ortcd
into acd
.lcd
(ortcd
) from nvimDirChanged
autocmd from NvimView.swift.dirchanged
event.cwdChanged
subscribeToNvimViewEvents()
in MainWindow.swiftcwdChanged()
in MainWindow+Delegates.swift.cd
typedReduce()
in MainWindowReducer.swiftstate.cwdToSet
subscribeToStateChange()
in MainWindow.swiftself.neoVimView.cwd
var cwd
setter in NvimView.swiftnvimSetCurrentDir()
which sets global nvim cwdThis chain had to be broken somewhere. The
state.cwdToSet
line in MainWindowReducer.swift has a comment that it's set to "ensure updates also send to tab bar". To fix we remove that line and instead set the tab bar cwd earlier in the cahin in NvimView+UiBridge.swift.I don't normally use the custom tab bar or file browser, but have tested them with this change and they seem to still work well.
Fixes #1027