Vimjas/vim-python-pep8-indent

'elif' indentation is forced to deepest 'if' one

asmka opened this issue · 2 comments

asmka commented

'elif' indentation is forced to deepest 'if' one as follows.
before indent:

if True:
    if True:
        pass
elif:
    pass

after indent:

if True:
    if True:
        pass
    elif:
        pass

expected after indent:

if True:
    if True:
        pass
elif:
    pass

On the other hand, 'else' indentation performs as I expected.
before indent:

if True:
    if True:
        pass
else:
    pass

after indent:

if True:
    if True:
        pass
else:
    pass

Thanks for the report - I've noticed this myself, but now took the time to fix it: #136.

asmka commented

Thank you for your quick fixing.
I confirmed expected behavior.