mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-06-27 19:31:46 +00:00
Log an error for invalid detach_window arguments
This commit is contained in:
parent
12a24d5c86
commit
3e672ac178
1 changed files with 1 additions and 0 deletions
|
|
@ -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,)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue