From f7114bc1c538747c34bc3507f95abc58a82f7f8b Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 13 Apr 2022 15:35:06 +0530 Subject: [PATCH] ... --- kitty/launch.py | 1 + 1 file changed, 1 insertion(+) diff --git a/kitty/launch.py b/kitty/launch.py index 9276d6e6f..162bcab6a 100644 --- a/kitty/launch.py +++ b/kitty/launch.py @@ -386,6 +386,7 @@ def launch( if active: kw['cwd_from'] = CwdRequest(active, CwdRequestType.last_reported) elif opts.cwd == 'oldest': + if active: kw['cwd_from'] = CwdRequest(active, CwdRequestType.last_reported) else: kw['cwd'] = opts.cwd