mirror of
https://github.com/gitui-org/gitui
synced 2026-05-23 08:58:21 +00:00
fix: use env.repo after Environment is constructed
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
09604cafc5
commit
349a0bf2dc
1 changed files with 1 additions and 1 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in a new issue