Skip to content

Comments

Check for removal of scratch buffer#8

Open
Alex-ABPerson wants to merge 1 commit intosmolck:mainfrom
Alex-ABPerson:main
Open

Check for removal of scratch buffer#8
Alex-ABPerson wants to merge 1 commit intosmolck:mainfrom
Alex-ABPerson:main

Conversation

@Alex-ABPerson
Copy link

@Alex-ABPerson Alex-ABPerson commented Nov 29, 2025

The plugin (and by extension the commandline itself, for the most part) gets bricked if the scratch buffer it uses is taken away. On my current nvim config, even the simple act of switching tabs does this. New check added to ensure the buffer is recreated if it does.

Before:

if not M.wbufnr then

After:

if not M.wbufnr or f.bufexists(M.wbufnr) == 0 then

Thanks!

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.

1 participant