fixed unused terminalcore implementation

This commit is contained in:
filipriec
2025-03-21 14:27:20 +01:00
parent 14f8785c5b
commit c46bbc26e1
2 changed files with 2 additions and 5 deletions

View File

@@ -2,7 +2,6 @@
use crossterm::event::{KeyEvent, KeyCode, KeyModifiers}; use crossterm::event::{KeyEvent, KeyCode, KeyModifiers};
use crate::tui::terminal::{ use crate::tui::terminal::{
core::TerminalCore,
grpc_client::GrpcClient, grpc_client::GrpcClient,
}; };
use crate::config::config::Config; use crate::config::config::Config;
@@ -15,11 +14,10 @@ pub async fn handle_edit_event_internal(
form_state: &mut FormState, form_state: &mut FormState,
ideal_cursor_column: &mut usize, ideal_cursor_column: &mut usize,
command_message: &mut String, command_message: &mut String,
terminal: &mut TerminalCore,
is_saved: &mut bool, is_saved: &mut bool,
current_position: &mut u64, current_position: &mut u64,
total_count: u64, total_count: u64,
grpc_client: &mut GrpcClient, // Changed from AppTerminal grpc_client: &mut GrpcClient,
) -> Result<String, Box<dyn std::error::Error>> { ) -> Result<String, Box<dyn std::error::Error>> {
if let Some(action) = config.get_edit_action_for_key(key.code, key.modifiers) { if let Some(action) = config.get_edit_action_for_key(key.code, key.modifiers) {
return execute_edit_action( return execute_edit_action(

View File

@@ -131,11 +131,10 @@ impl EventHandler {
form_state, form_state,
&mut self.ideal_cursor_column, &mut self.ideal_cursor_column,
&mut self.command_message, &mut self.command_message,
terminal,
is_saved, is_saved,
current_position, current_position,
total_count, total_count,
grpc_client, // Moved to end to match parameter order grpc_client,
).await?; ).await?;
self.key_sequence_tracker.reset(); self.key_sequence_tracker.reset();