make bookmark width take into account the line numbers
This commit is contained in:
parent
7789ccb90a
commit
02facac20a
@ -284,6 +284,10 @@ endfunction
|
||||
" Get the string that should be rendered in the view for this bookmark
|
||||
function! s:oBookmark.Str() dict
|
||||
let pathStrMaxLen = winwidth(s:GetTreeWinNum()) - 5 - len(self.name)
|
||||
if &nu
|
||||
let pathStrMaxLen = pathStrMaxLen - &numberwidth
|
||||
endif
|
||||
|
||||
let pathStr = self.path.StrForOS(0)
|
||||
if len(pathStr) > pathStrMaxLen
|
||||
let pathStr = '<' . strpart(pathStr, len(pathStr) - pathStrMaxLen)
|
||||
|
Loading…
Reference in New Issue
Block a user