File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ let s:doc_line_regex = '^\s*\("""\|''''''\).\+\1\s*$'
11
11
12
12
fun ! pymode#folding#text () " {{{
13
13
let fs = v: foldstart
14
- while getline (fs ) = ~ ' ^\s*@'
14
+ while getline (fs ) = ~ ' \%( ^\s*@\)\|\%(^\s*\%("""\| '''''' \)\s*$\) '
15
15
let fs = nextnonblank (fs + 1 )
16
16
endwhile
17
17
let line = getline (fs )
@@ -25,6 +25,7 @@ fun! pymode#folding#text() " {{{
25
25
let line = substitute (line , ' \t' , onetab, ' g' )
26
26
27
27
let line = strpart (line , 0 , windowwidth - 2 - len (foldedlinecount))
28
+ let line = substitute (line , ' \%("""\|'''''' \)' , ' ' , ' ' )
28
29
let fillcharcount = windowwidth - len (line ) - len (foldedlinecount)
29
30
return line . ' …' . repeat (" " ,fillcharcount) . foldedlinecount . ' …' . ' '
30
31
endfunction " }}}
You can’t perform that action at this time.
0 commit comments