ms-jpq / chadtree

File manager for Neovim. Better than NERDTree.
1.62k stars 60 forks source link

Error: Invalid Window id: 1113 when renaming current editing buffer #344

Closed linrongbin16 closed 7 months ago

linrongbin16 commented 1 year ago

Issue

image

Environment

Here is my nvim config: https://github.com/linrongbin16/lin.nvim/tree/linrongbin16/chadtree

Re-produce

After open nvim, open a buffer (for example name is 'init.lua'), move cursor the left side and rename the 'init.lua' file to 'init.lua.bak', and this error will show up.

Maybe since the 'init.lua' is renamed, but the 'init.lua' buffer is still been editing, so this error throwed out.

Maybe it's better to just give a warning message.