fix: use env.repo after Environment is constructed

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
wuyangfan 2026-05-17 16:30:12 +08:00
parent 09604cafc5
commit 349a0bf2dc

View file

@ -197,7 +197,7 @@ impl App {
let mut select_file: Option<PathBuf> = 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()