diff --git a/comp_editor.py b/comp_editor.py index 85c63f7..5a598fa 100644 --- a/comp_editor.py +++ b/comp_editor.py @@ -573,7 +573,7 @@ def save_changes(self): if char == "{": brace_count += 1 elif char == "}": - brace_count -= 1.0 + brace_count -= 1 if brace_count == 0 and char == "}": break