Skip to content
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

Close buffer along with window #24

Closed
tamton-aquib opened this issue Apr 14, 2022 · 1 comment
Closed

Close buffer along with window #24

tamton-aquib opened this issue Apr 14, 2022 · 1 comment

Comments

@tamton-aquib
Copy link

In case of floats:
the window is closed, but the buffer is not completely wiped.
image

buflist contained this buffer:
image


I tried adding a line to `closeCmd()` inside `createWin()`:

image

and it was temporarily fixed, but i dont know if it breaks anything else 😅

@is0n is0n closed this as completed in 9905c48 Apr 15, 2022
@is0n
Copy link
Owner

is0n commented Apr 15, 2022

It doesn't seem to break anything so I've updated the code to include vim.api.nvim_buf_delete(M.buf, {force = true}).

Tested it out with stabline and it seems to work. Thanks for pointing this out!

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

No branches or pull requests

2 participants