From d123b6c3778304a4332fe82c2c11cd5d4c22a816 Mon Sep 17 00:00:00 2001 From: Rafik Draoui Date: Sun, 24 Apr 2022 13:19:22 -0300 Subject: [PATCH] Fix `launch --cwd=oldest` --- kitty/launch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kitty/launch.py b/kitty/launch.py index b3281f42b..5bf50f37f 100644 --- a/kitty/launch.py +++ b/kitty/launch.py @@ -387,7 +387,7 @@ def launch( kw['cwd_from'] = CwdRequest(active, CwdRequestType.last_reported) elif opts.cwd == 'oldest': if active: - kw['cwd_from'] = CwdRequest(active, CwdRequestType.last_reported) + kw['cwd_from'] = CwdRequest(active, CwdRequestType.oldest) else: kw['cwd'] = opts.cwd if opts.location != 'default':