Skip to content

fix: live filter delete buffer when removing overlay #2522

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

Conversation

geril2207
Copy link
Collaborator

@geril2207 geril2207 commented Nov 9, 2023

Problem: When leaving live filter overlay we delete window, but not buffer, you can debug this and found that these buffers living all time untill you close neovim.
Solution: Add buffer deletion.
Also small improvement, vim.api.nvim_win_close as second argument takes force as boolean not table(but maybe this also working) https://neovim.io/doc/user/api.html#nvim_win_close()

@geril2207 geril2207 force-pushed the fix/live-filter-remove-overlay branch from 802e651 to 2333811 Compare November 10, 2023 12:00
@alex-courtis
Copy link
Member

alex-courtis commented Nov 12, 2023

second argument takes force as boolean not table(but maybe this also working)

Look accidental to me... table coercing to boolean?

Copy link
Member

@alex-courtis alex-courtis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fantastic work - all those scratch buffers are remove.

Thank you for finding and fixing.

@alex-courtis alex-courtis merged commit 74ddb8f into nvim-tree:master Nov 12, 2023
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