dc349a072a
If the user wipes out or deletes (:bw or :bd) the NERDTree buffer, there is still a tab variable that hangs onto the name of that now-missing buffer. Checking only that variable is not enough to decide whether to create a new NERDTree or use the existing one. Fortunately, there already is a function with a more complete check: ExistsForTab()