diff --git a/kitty/window.py b/kitty/window.py index ea512da4a..fecf20133 100644 --- a/kitty/window.py +++ b/kitty/window.py @@ -103,7 +103,7 @@ class CwdRequest: return '' if not window.child_is_remote and (self.request_type is CwdRequestType.last_reported or window.at_prompt): return reported_cwd - return window.cwd_of_child or '' + return window.get_cwd_of_child(oldest=self.request_type is CwdRequestType.oldest) or '' def process_title_from_child(title: str, is_base64: bool) -> str: