From 1d0ceb7045f315707f63cf6bf4b227723767ff08 Mon Sep 17 00:00:00 2001 From: filipriec Date: Fri, 4 Apr 2025 23:28:30 +0200 Subject: [PATCH] minor changes --- client/src/functions/modes/read_only/auth_ro.rs | 3 +-- client/src/modes/handlers/mode_manager.rs | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/client/src/functions/modes/read_only/auth_ro.rs b/client/src/functions/modes/read_only/auth_ro.rs index 0310ca0..dd51cec 100644 --- a/client/src/functions/modes/read_only/auth_ro.rs +++ b/client/src/functions/modes/read_only/auth_ro.rs @@ -19,8 +19,7 @@ pub async fn execute_action( command_message: &mut String, ) -> Result> { match action { - "previous_entry" | "next_entry" | "move_up" | "move_down" | - "move_first_line" | "move_last_line" => { + "previous_entry" | "next_entry" => { key_sequence_tracker.reset(); Ok(format!( "Action '{}' should be handled by context-specific logic", diff --git a/client/src/modes/handlers/mode_manager.rs b/client/src/modes/handlers/mode_manager.rs index 4c9b1af..a8deba1 100644 --- a/client/src/modes/handlers/mode_manager.rs +++ b/client/src/modes/handlers/mode_manager.rs @@ -19,7 +19,7 @@ impl ModeManager { return AppMode::Command; } - if app_state.ui.show_login { // NEW: Check auth visibility + if app_state.ui.show_login { if event_handler.is_edit_mode { AppMode::Edit } else {