From 52ccc154cc05d4686017aba0c540879305cd89f9 Mon Sep 17 00:00:00 2001 From: 2Shirt <2xShirt@gmail.com> Date: Tue, 27 May 2025 19:18:01 -0700 Subject: [PATCH] Reset results key/line index on Action::SetMode --- boot_diags/src/components/results.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/boot_diags/src/components/results.rs b/boot_diags/src/components/results.rs index 759f8c3..f99fcab 100644 --- a/boot_diags/src/components/results.rs +++ b/boot_diags/src/components/results.rs @@ -84,6 +84,8 @@ impl Component for Results { } Action::SetMode(mode) => { self.show = mode == Mode::BootDiags; + self.key_index = 0; + self.line_index = 0; } _ => {} };