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 60c638d commit 52ef7abCopy full SHA for 52ef7ab
autoload/pymode/folding.vim
@@ -137,6 +137,7 @@ fun! pymode#folding#foldcase(lnum) "{{{
137
endif "}}}
138
139
" Blocks. {{{
140
+ let s:save_cursor = getcurpos()
141
let line_block_start = s:BlockStart(a:lnum)
142
let line_block_end = s:BlockEnd(a:lnum)
143
let prev_line_block_start = s:BlockStart(a:lnum - 1)
@@ -154,7 +155,10 @@ fun! pymode#folding#foldcase(lnum) "{{{
154
155
let l:foldlevel = indent(line_block_start) / &shiftwidth + 1
156
endif
157
158
+ call setpos('.', s:save_cursor)
159
return {'foldcase': l:foldcase, 'foldlevel': l:foldlevel}
160
+ else
161
162
163
" endif " }}}
164
0 commit comments