move nerdtree#getTreeWinNum out of autoload

This commit is contained in:
Martin Grenfell
2015-05-02 14:31:57 +01:00
parent 973c9906f8
commit 8270b6d717
4 changed files with 16 additions and 16 deletions

View File

@@ -253,7 +253,7 @@ endfunction
" FUNCTION: Bookmark.str() {{{1
" Get the string that should be rendered in the view for this bookmark
function! s:Bookmark.str()
let pathStrMaxLen = winwidth(nerdtree#getTreeWinNum()) - 4 - len(self.name)
let pathStrMaxLen = winwidth(g:NERDTree.GetWinNum()) - 4 - len(self.name)
if &nu
let pathStrMaxLen = pathStrMaxLen - &numberwidth
endif