We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 755e99f commit fa6322eCopy full SHA for fa6322e
1 file changed
autoload/pymode/folding.vim
@@ -51,7 +51,7 @@ fun! pymode#folding#expr(lnum) "{{{
51
52
if line =~ s:def_regex
53
" single line def
54
- if indent(a:lnum) >= indent(a:lnum+1)
+ if indent(a:lnum) >= indent(a:lnum+1) && getline(prevnonblank(a:lnum)) !~ ':\s*$'
55
return '='
56
endif
57
" Check if last decorator is before the last def
0 commit comments