10000 Replace getcurpos with getpos to support older Vim · python-mode/python-mode@dc80183 · GitHub
[go: up one dir, main page]

Skip to content

Commit dc80183

Browse files
committed
Replace getcurpos with getpos to support older Vim
1 parent 1f9bb33 commit dc80183

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
@@ -79,7 +79,7 @@ fun! pymode#folding#expr(lnum) "{{{
7979
" Handle nested defs but only for files shorter than
8080
" g:pymode_folding_nest_limit lines due to performance concerns
8181
if line('$') < g:pymode_folding_nest_limit && indent(prevnonblank(a:lnum))
82-
let curpos = getcurpos()
82+
let curpos = getpos('.')
8383
try
8484
let last_block = s:BlockStart(a:lnum)
8585
let last_block_indent = indent(last_block)

0 commit comments

Comments
 (0)
0