Open nybblr opened 11 years ago
Hmm I'm not able to reproduce this with GVim. When I go from 1 to 2 tabs, the content area shrinks as well, but GVim only scrolls as much as necessary -> the file that has focus is on the bottom of the nerdtree window, not on top.
If it can be fixed in nerdtree-tabs, it's gonna be probably in save view / restore view functions: https://github.com/jistr/vim-nerdtree-tabs/blob/1e745dae8815cd2934609a5721788ee8e3103df6/nerdtree_plugin/vim-nerdtree-tabs.vim#L258-296
Hate to be "issue happy", maybe it's a NERDtree issue instead.
When I am in MacVim and press "t" to open the selected file in a new tab, MacVim shrinks the content area so it can show the tab bar at the top. In consequence, the new tab shows the mirrored NERDtree with the buffer scrolled to the selected file.
In other words, opening a second tab scrolls nerd tree: So if I selected the second-to-last file in the tree (with only one tab, so there is no tab bar) and press t, the new tab has nerdtree scrolled so only two lines show up. To see the entire tree, I have to scroll it back down. Not life changing, but very irritating considering how often I jump between 1 tab to 2 tabs.
Is this a nerdtree fix, or is there some behavior in nerdtree-tabs that might trigger this scroll jump? Thanks! ~ Jonathan Martin