From 349a0bf2dcab61265f14a4d5fbf32a64eb952280 Mon Sep 17 00:00:00 2001 From: wuyangfan <1102042793@qq.com> Date: Sun, 17 May 2026 16:30:12 +0800 Subject: [PATCH] fix: use env.repo after Environment is constructed Co-authored-by: Cursor --- src/app.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app.rs b/src/app.rs index 8b20c5e9..df21fa16 100644 --- a/src/app.rs +++ b/src/app.rs @@ -197,7 +197,7 @@ impl App { let mut select_file: Option = None; let tab = if let Some(file) = cliargs.select_file { - select_file = resolve_select_file(file, &repo.borrow())?; + select_file = resolve_select_file(file, &env.repo.borrow())?; 2 } else { env.options.borrow().current_tab()