Allow passing a "reset" argument to resize_window

This commit is contained in:
Kovid Goyal
2022-02-11 08:16:17 +05:30
parent c4b3bbd057
commit 1c48ec7196
3 changed files with 6 additions and 1 deletions

View File

@@ -211,7 +211,7 @@ def resize_window(func: str, rest: str) -> FuncArgsType:
args = ['wider', 1]
else:
quality = vals[0].lower()
if quality not in ('taller', 'shorter', 'wider', 'narrower'):
if quality not in ('reset', 'taller', 'shorter', 'wider', 'narrower'):
log_error(f'Invalid quality specification: {quality}')
quality = 'wider'
increment = 1