You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix focussing previous buffer when closing NERDTree
Previously closing NERDTree while two windows were showing the same buffer would
focus the first window, which was not necessarily the previously active one.
Instead of obtaining the buffer ID of the previous buffer and mapping that to
the window ID (which is a 1:n mapping) we obtain the unique window ID and focus
the right window after closing NERDTree.
win_getid() and win_gotoid() are available from VIM 7.4.1557, so this patch is
conditional on that version.
0 commit comments