command-completion.nvim icon indicating copy to clipboard operation
command-completion.nvim copied to clipboard

Check for removal of scratch buffer

Open Alex-ABPerson opened this issue 1 week ago • 0 comments

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!

Alex-ABPerson avatar Nov 29 '25 23:11 Alex-ABPerson