Log an error for invalid detach_tab argument

This commit is contained in:
Kovid Goyal 2020-02-24 18:43:15 +05:30
parent 3e672ac178
commit 2b441df9e9
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -104,6 +104,7 @@ def detach_window_parse(func, rest):
@func_with_args('detach_tab')
def detach_tab_parse(func, rest):
if rest not in ('new', 'ask'):
log_error('Ignoring invalid detach_tab argument: {}'.format(rest))
rest = 'new'
return func, (rest,)