clone-in-kitty: Fix KITTY_WINDOW_ID being cloned and thus having incorrect value

Fixes #8161
This commit is contained in:
Kovid Goyal
2024-12-25 18:27:40 +05:30
parent 055fb30bf2
commit 5a99f3b6cf
2 changed files with 4 additions and 0 deletions

View File

@@ -103,6 +103,8 @@ Detailed list of changes
- macOS: Fix mouse cursor shape not always being reset to text cursor when mouse re-enters kitty (:iss:`8155`)
- clone-in-kitty: Fix :envvar:`KITTY_WINDOW_ID` being cloned and thus having incorrect value (:iss:`8161`)
0.38.0 [2024-12-15]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

View File

@@ -912,6 +912,8 @@ class CloneCmd:
# skip SSH environment variables
'SSH_CLIENT', 'SSH_CONNECTION', 'SSH_ORIGINAL_COMMAND', 'SSH_TTY', 'SSH2_TTY',
'SSH_TUNNEL', 'SSH_USER_AUTH', 'SSH_AUTH_SOCK',
# Dont clone KITTY_WINDOW_ID
'KITTY_WINDOW_ID',
} and not k.startswith((
# conda state env vars for multi-level virtual environments
'CONDA_PREFIX_',