Also ensure oldest cwd request type is honored by modify_argv

This commit is contained in:
Kovid Goyal 2022-04-22 08:40:18 +05:30
parent b753cf6879
commit 714461de76
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -103,7 +103,7 @@ class CwdRequest:
return '' return ''
if not window.child_is_remote and (self.request_type is CwdRequestType.last_reported or window.at_prompt): if not window.child_is_remote and (self.request_type is CwdRequestType.last_reported or window.at_prompt):
return reported_cwd 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: def process_title_from_child(title: str, is_base64: bool) -> str: