Log an error for invalid detach_window arguments

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

View File

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