Fix child_is_remote() not working when abspath to ssh is used

This commit is contained in:
Kovid Goyal
2025-08-22 20:45:05 +05:30
parent e63d6e91f8
commit 7134819c26

View File

@@ -1827,7 +1827,7 @@ class Window:
def child_is_remote(self) -> bool:
for p in self.child.foreground_processes:
q = list(p['cmdline'] or ())
if q and q[0].lower() == 'ssh':
if q and os.path.basename(q[0]).lower() == 'ssh':
return True
return False