mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-08-03 22:25:57 +00:00
Fix setting env vars in kssh cmdline that has no kitten directives
This commit is contained in:
parent
7134819c26
commit
1a25ca1545
1 changed files with 1 additions and 1 deletions
|
|
@ -156,7 +156,7 @@ def set_env_in_cmdline(env: dict[str, str], argv: list[str], clone: bool = True)
|
|||
if clone:
|
||||
patch_cmdline('clone_env', create_shared_memory(env, 'ksse-'), argv)
|
||||
return
|
||||
idx = argv.index('ssh')
|
||||
idx = argv.index('ssh') - 1
|
||||
for i in range(idx, len(argv)):
|
||||
if argv[i] == '--kitten':
|
||||
idx = i + 1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue