Skip to content

Commit e92df45

Browse files
committed
Merge pull request python-mode#533 from Ram-Z/fold-docs
Don't skip a line when the first docstring contains text
2 parents 2ad7970 + 7ce8c76 commit e92df45

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

autoload/pymode/folding.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ fun! pymode#folding#text() " {{{
1818
while getline(fs) !~ s:def_regex && getline(fs) !~ s:doc_begin_regex
1919
let fs = nextnonblank(fs + 1)
2020
endwhile
21-
if getline(fs) =~ s:doc_begin_regex
21+
if getline(fs) =~ s:doc_end_regex && getline(fs) =~ s:doc_begin_regex
2222
let fs = nextnonblank(fs + 1)
2323
endif
2424
let line = getline(fs)

0 commit comments

Comments
 (0)