Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Focus previous window 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 but the old behavior is used as a fallback if the two functions are not available.
- Loading branch information