Skip to content

Commit

Permalink
Fix issue python-mode#519 – fold text truncated when relativenumber i…
Browse files Browse the repository at this point in the history
…s set.
  • Loading branch information
sscherfke committed Jan 14, 2015
1 parent 95c4190 commit da4d8b2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion autoload/pymode/folding.vim
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ fun! pymode#folding#text() " {{{
endif
let line = getline(fs)

let nucolwidth = &fdc + &number * &numberwidth
let has_numbers = &number || &relativenumber
let nucolwidth = &fdc + has_numbers * &numberwidth
let windowwidth = winwidth(0) - nucolwidth - 6
let foldedlinecount = v:foldend - v:foldstart

Expand Down

0 comments on commit da4d8b2

Please sign in to comment.