scrooloose/nerdtree — pull request #104 by cperl82 (2011-12-22 21:41:26+00:00)
Title: stayInCurrentTab fix

The dictionary that Bookmark.openInNewTab takes as a parameter can have the key 'stayInCurrentTab', which has the same meaning as in TreeDirNode.openInNewTab and TreeFileNode.openInNewTab. Bookmark.openInNewTab is not checking the value of the key, only its existence, so a call like:

NERDTreeBookmark.GetSelected().openInNewTab({'stayInCurrentTab': 0})

Will actually keep you in the current tab even though the value passed was 0. This change makes the check in Bookmark.openInNewTab consistent with those in TreeDirNode.openInNewTab and TreeFileNode.openInNewTab.