Skip to content

Commit

Permalink
Merge pull request python-mode#522 from sscherfke/develop
Browse files Browse the repository at this point in the history
Fix issue python-mode#519 – fold text truncated when relativenumber is set.
  • Loading branch information
klen committed Jan 15, 2015
2 parents 95c4190 + da4d8b2 commit f76d607
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 f76d607

Please sign in to comment.