scrooloose/nerdtree — pull request #102 by daniel-kullmann (2011-12-16 12:47:08+00:00)
Title: Prevent nerdtree from splitting other window, when that is just empty (&buftype=='nofile')

I often have the situation where I close all existing buffers (except the NERDTree buffer), and then start opening files from NERDTree again.

When doing this, NERDTree opens the files in a new split window, i.e. I have NERDTree at the left side, and on the right side two windows on top of each other, an emtpy buffer and the file I wanted to open.

What I want to happen is that NERDTree opens the file in the right window without splitting it.
This commit fixes this problem, although I'm not sure whether this is the best way to accomplish
this..