diff options
Diffstat (limited to 'indent/python.vim')
-rw-r--r-- | indent/python.vim | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/indent/python.vim b/indent/python.vim index 475bbf40..156833d4 100644 --- a/indent/python.vim +++ b/indent/python.vim @@ -160,8 +160,8 @@ function! s:find_start_of_block(lnum, types, skip, multiple) abort else let re_skip = '' endif - let lnum = a:lnum - let last_indent = indent(lnum) + 1 + let last_indent = indent(a:lnum) + 1 + let lnum = a:lnum - 1 while lnum > 0 && last_indent > 0 let indent = indent(lnum) if indent < last_indent @@ -262,7 +262,7 @@ function! s:indent_like_block(lnum) endif let [blocks, skip] = blocks_ignore - let indents = s:find_start_of_block(a:lnum - 1, blocks, skip, multiple) + let indents = s:find_start_of_block(a:lnum, blocks, skip, multiple) if empty(indents) return -1 endif |