Fix int_level handling in :zoom

This commit is contained in:
Florian Bruhin 2018-12-04 17:38:50 +01:00
parent 91a592a256
commit 8a107fa5b3

View File

@ -82,10 +82,9 @@ def zoom(tab: apitypes.Tab,
except ValueError:
raise cmdutils.CommandError("zoom: Invalid int value {}"
.format(level))
if count is not None:
elif count is not None:
int_level = count
elif int_level is None:
else:
int_level = config.val.zoom.default
try: