file manager
git clone https://git.lucas.co/cce-files.git
fix: rebuild after a Tab focus step
The geometry is cached until the next rebuild, so the moved focus ring was
not drawn; raise the flag from Application::focus_stepped.
Co-Authored-By: Claude Fable 5.1 <[email protected]>
src/main.rs | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/main.rs b/src/main.rs
index d4b69d2..31afd5f 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -2468,6 +2468,11 @@ impl Application for FilesystemApp {
true
}
+ /// The geometry is cached until the next rebuild — a moved focus ring needs one.
+ fn focus_stepped(&mut self) {
+ self.needs_rebuild = true;
+ }
+
fn handle_key_input(&mut self, event: &KeyEvent, needs_rebuild: &mut bool) -> Option<Self::Message> {
if event.state != ElementState::Pressed {
return None;