Skip to content

Commit

Permalink
small update to the maxwidth parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisbra committed Dec 7, 2014
1 parent a1a1060 commit 805cbfc
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions plugin/CustomFoldText.vim
Expand Up @@ -20,11 +20,7 @@ fu! CustomFoldText(string) "{{{1
" let line = substitute(line, matchstr(&l:cms,
" \ '^.\{-}\ze%s').'\?\s*'. split(&l:fmr,',')[0].'\s*\d\+', '', '')

if get(g:, 'custom_foldtext_max_width', 0)
let w = g:custom_foldtext_max_width - &foldcolumn - (&number ? 8 : 0)
else
let w = winwidth(0) - &foldcolumn - (&number ? 8 : 0)
endif
let w = get(g:, 'custom_foldtext_max_width', winwidth(0)) - &foldcolumn - (&number ? 8 : 0)
let foldSize = 1 + v:foldend - v:foldstart
let foldSizeStr = " " . foldSize . " lines "
let foldLevelStr = '+'. v:folddashes
Expand Down

0 comments on commit 805cbfc

Please sign in to comment.