preservim / nerdtree

A tree explorer plugin for vim.
Do What The F*ck You Want To Public License
19.56k stars 1.44k forks source link

fix: session restore for nerdtree buffers. #1405

Closed rzvxa closed 8 months ago

rzvxa commented 8 months ago

Description of Changes

Closes #1397


New Version Info

This PR adds a new naming scheme for the NERDTree buffers, instead of having NERD_tree_[num] for all NERDTree buffers now we use NERD_tree_tab_[num] for tab buffers and NERD_tree_win_[num] for window buffers, This is then used during the restoration of a previously saved session to detect the type of given buffers and rescue them.

rzvxa commented 8 months ago

@terminatorul This should fix the issue with restoring sessions containing NERDTree buffers. Would you give it a try?

terminatorul commented 8 months ago

@terminatorul This should fix the issue with restoring sessions containing NERDTree buffers. Would you give it a try?

I tried it and it works fine ! Got rid of the previous errors on session load !