Skip to content

Commit 757b663

Browse files
committed
fix folding.
1 parent b7eb0ec commit 757b663

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

autoload/pymode/folding.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ fun! pymode#folding#text() " {{{
1717
let line = getline(fs)
1818

1919
let nucolwidth = &fdc + &number * &numberwidth
20-
let windowwidth = winwidth(0) - nucolwidth - 3
20+
let windowwidth = winwidth(0) - nucolwidth - 6
2121
let foldedlinecount = v:foldend - v:foldstart
2222

2323
" expand tabs into spaces
@@ -27,7 +27,7 @@ fun! pymode#folding#text() " {{{
2727
let line = strpart(line, 0, windowwidth - 2 -len(foldedlinecount))
2828
let line = substitute(line, '\%("""\|''''''\)', '', '')
2929
let fillcharcount = windowwidth - len(line) - len(foldedlinecount)
30-
return line . '' . repeat(" ",fillcharcount) . foldedlinecount . '' . ' '
30+
return line . '' . repeat(" ", fillcharcount) . ' ' . foldedlinecount . ' '
3131
endfunction "}}}
3232

3333

0 commit comments

Comments
 (0)