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:
Kurt B. Kaiser 2004-04-26 22:26:04 +00:00
parent ce97fbe772
commit e3636e05de
1 changed files with 1 additions and 1 deletions

View File

@ -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: