Skip to content

fix(view): Rename rogue buffer. #327

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 20, 2021

Conversation

sindrets
Copy link
Contributor

Setting the buffer name in setup might fail because _wipe_rogue_buffer is not synchronous:

https://github.com/kyazdani42/nvim-tree.lua/blob/983963779d6696c5b6b4aa14f874d85f00941b4e/lua/nvim-tree/view.lua#L119-L120

Rename the rogue buffer synchronously so that this doesn't happen.

Setting the buffer name in setup might fail because `_wipe_rogue_buffer`
is not synchronous. Rename the rogue buffer synchronously so that this
doesn't happen.
@kyazdani42 kyazdani42 merged commit c235df7 into nvim-tree:master Apr 20, 2021
Almo7aya pushed a commit to Almo7aya/nvim-tree.lua that referenced this pull request Oct 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants