Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions autoload/pymode/folding.vim
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ fun! pymode#folding#expr(lnum) "{{{
endif

if line =~ s:def_regex
" single line def
if indent(a:lnum) >= indent(a:lnum+1)
return '='
endif
" Check if last decorator is before the last def
let decorated = 0
let lnum = a:lnum - 1
Expand Down