Skip to content

Commit

Permalink
allow escape and null chars to be inserted in editor
Browse files Browse the repository at this point in the history
  • Loading branch information
SilenZcience committed Sep 23, 2023
1 parent ab0408d commit 97989e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cat_win/util/editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ def _key_string(self, wchars) -> str:
wchars (int|str):
given by curses get_wch()
"""
if not isinstance(wchars, str) or wchars in '\0\x1b':
if not isinstance(wchars, str) or not wchars:
return ''
self.unsaved_progress = True
self.window_content[self.cpos.row] = \
Expand Down

0 comments on commit 97989e7

Please sign in to comment.