Fix a bug I introduced which causes all block openers at an indent level
to be shown, instead of outdenting each level.
This commit is contained in:
parent
ce97fbe772
commit
e3636e05de
|
@ -100,7 +100,7 @@ class CodeContext:
|
|||
indent, text, opener = self.get_line_info(line_index)
|
||||
if indent < lastindent:
|
||||
lastindent = indent
|
||||
if opener == "else" or "elif":
|
||||
if opener in ("else", "elif"):
|
||||
# We also show the if statement
|
||||
lastindent += 1
|
||||
if opener and line_index < firstline:
|
||||
|
|
Loading…
Reference in New Issue