When running kittens use the cwd of the child process as the kittens' cwd

This commit is contained in:
Kovid Goyal 2018-07-24 10:14:17 +05:30
parent f84cb2f07a
commit 9e044750ce
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -610,7 +610,9 @@ class Boss:
'OVERLAID_WINDOW_LINES': str(w.screen.lines), 'OVERLAID_WINDOW_LINES': str(w.screen.lines),
'OVERLAID_WINDOW_COLS': str(w.screen.columns), 'OVERLAID_WINDOW_COLS': str(w.screen.columns),
}, },
overlay_for=w.id)) cwd=w.cwd_of_child,
overlay_for=w.id
))
overlay_window.action_on_close = partial(self.on_kitten_finish, w.id, end_kitten) overlay_window.action_on_close = partial(self.on_kitten_finish, w.id, end_kitten)
return overlay_window return overlay_window