From d831cbf17b54c2d89e2506e764393dc77cf9bc5a Mon Sep 17 00:00:00 2001 From: Martin Grenfell Date: Sun, 29 Jun 2008 12:35:05 +1200 Subject: [PATCH] render bookmark paths as wide as the window allows --- plugin/NERD_tree.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/NERD_tree.vim b/plugin/NERD_tree.vim index c011654..ad8e323 100644 --- a/plugin/NERD_tree.vim +++ b/plugin/NERD_tree.vim @@ -284,7 +284,7 @@ endfunction " Function: oBookmark.Str() {{{3 " Get the string that should be rendered in the view for this bookmark function! s:oBookmark.Str() dict - let pathStrMaxLen = 26 - len(self.name) + let pathStrMaxLen = winwidth(s:GetTreeWinNum()) - 5 - len(self.name) let pathStr = self.path.StrForOS(0) if len(pathStr) > pathStrMaxLen let pathStr = '<' . strpart(pathStr, len(pathStr) - pathStrMaxLen)