From 714461de76cd557451c6428a70a51e42cc3e7228 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 22 Apr 2022 08:40:18 +0530 Subject: [PATCH] Also ensure oldest cwd request type is honored by modify_argv --- kitty/window.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: