Dont allow inappropriate types for cloning

This commit is contained in:
Kovid Goyal 2022-04-17 08:19:01 +05:30
parent 291f9e9a5e
commit 74d5f2c259
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -588,6 +588,8 @@ def clone_and_launch(msg: str, window: Window) -> None:
c.opts.cwd = c.cwd
c.opts.copy_colors = True
c.opts.copy_env = False
if c.opts.type in ('clipboard', 'primary', 'background'):
c.opts.type = 'window'
serialized_env = serialize_env(c.shell, c.env or {})
ssh_kitten_cmdline = window.ssh_kitten_cmdline()
if ssh_kitten_cmdline: