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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy