mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
fix: cursor not positioned correctly at init
This commit is contained in:
parent
397b30b996
commit
1b9f31d3cc
1 changed files with 6 additions and 1 deletions
|
|
@ -223,8 +223,13 @@ impl Actor for ExcludeAdd {
|
|||
false
|
||||
};
|
||||
|
||||
if cwd_changed || parent_changed {
|
||||
// Always reposition parent cursor on CWD, even if folders are still loading
|
||||
// The hover action ensures parent panel tracks the current working directory
|
||||
if parent_changed || cx.parent().is_some() {
|
||||
act!(mgr:hover, cx)?;
|
||||
}
|
||||
|
||||
if cwd_changed || parent_changed {
|
||||
act!(mgr:update_paged, cx)?;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue