From 1b9f31d3cc02fa2aeb78193d03dfb1bd392d8dfb Mon Sep 17 00:00:00 2001 From: and-rs Date: Thu, 6 Nov 2025 14:52:07 -0500 Subject: [PATCH] fix: cursor not positioned correctly at init --- yazi-actor/src/mgr/exclude_add.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/yazi-actor/src/mgr/exclude_add.rs b/yazi-actor/src/mgr/exclude_add.rs index 8d85435c..1238fcc1 100644 --- a/yazi-actor/src/mgr/exclude_add.rs +++ b/yazi-actor/src/mgr/exclude_add.rs @@ -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)?; }