Kaydet (Commit) e3636e05 authored tarafından Kurt B. Kaiser's avatar Kurt B. Kaiser

Fix a bug I introduced which causes all block openers at an indent level

to be shown, instead of outdenting each level.
üst ce97fbe7
......@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment