fix: cursor not positioned correctly at init

This commit is contained in:
and-rs 2025-11-06 14:52:07 -05:00 committed by Carlos de Paula
parent 397b30b996
commit 1b9f31d3cc
No known key found for this signature in database

View file

@ -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)?;
}