Coding style.

- All attributes should be in the __init__.
- Fixed a traceback when pressing ctrl-c as first key.
This commit is contained in:
Andrew Hamilton 2022-01-04 10:52:38 +10:00
parent 5e2657c46d
commit 99339680de

View file

@ -200,6 +200,7 @@ class Editor:
self.last_height = 40
self.is_editing = True
self.theme_index = 0
self.previous_term_code = None
@property
def cursor_x(self):