gorbit99 / codewindow.nvim

MIT License
431 stars 16 forks source link

Only delete buffer if buffer is valid #67

Closed gpayer closed 11 months ago

gpayer commented 12 months ago

On quitting nvim close_minimap is called and this triggers lots of "invalid buffer" error messages, when this code tries to delete the minimap window buffer. At least in my setup this happens.

So I added a check to test if the buffer is valid before deleting it.

gorbit99 commented 11 months ago

Sorry for the delay, totally forgot that this PR existed. Seems like a simple change, thank you!