mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-08-28 12:21:55 +00:00
When at shell prompt use reported cwd
This commit is contained in:
parent
a834f221f1
commit
7d9cf0b064
1 changed files with 4 additions and 0 deletions
|
|
@ -1137,6 +1137,10 @@ class Window:
|
|||
|
||||
@property
|
||||
def cwd_of_child(self) -> Optional[str]:
|
||||
if self.at_prompt and self.screen.last_reported_cwd:
|
||||
cwd = path_from_osc7_url(self.screen.last_reported_cwd)
|
||||
if cwd:
|
||||
return cwd
|
||||
return self.child.foreground_cwd or self.child.current_cwd
|
||||
|
||||
def modify_argv_for_launch_with_cwd(self, argv: List[str]) -> str:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue