we compiled

This commit is contained in:
filipriec
2025-04-18 21:04:36 +02:00
parent d3fcb23e22
commit ef3ecfc73f
4 changed files with 13 additions and 8 deletions

View File

@@ -9,8 +9,9 @@ use crate::state::pages::auth::{LoginState, RegisterState};
use crate::state::pages::add_table::AddTableState;
use crate::state::pages::form::FormState;
use crate::modes::handlers::event::EventOutcome;
use crate::modes::read_only; // Import the ReadOnly handler
use crate::modes::read_only;
use crossterm::event::KeyEvent;
use anyhow::{anyhow, Result};
/// Handles events when in Highlight mode.
/// Currently, it mostly delegates to the read_only handler for movement.
@@ -30,7 +31,7 @@ pub async fn handle_highlight_event(
command_message: &mut String,
edit_mode_cooldown: &mut bool,
ideal_cursor_column: &mut usize,
) -> Result<EventOutcome, Box<dyn std::error::Error>> {
) -> Result<EventOutcome> {
// Delegate movement and other actions to the read_only handler
// The rendering logic will use the highlight_anchor to draw the selection
let (should_exit, message) = read_only::handle_read_only_event(