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.
2 parents e92df45 + e6c9144 commit fb2ab53Copy full SHA for fb2ab53
1 file changed
autoload/pymode/folding.vim
@@ -50,6 +50,10 @@ fun! pymode#folding#expr(lnum) "{{{
50
endif
51
52
if line =~ s:def_regex
53
+ " single line def
54
+ if indent(a:lnum) >= indent(a:lnum+1)
55
+ return '='
56
+ endif
57
" Check if last decorator is before the last def
58
let decorated = 0
59
let lnum = a:lnum - 1
0 commit comments