fixed unused terminalcore implementation
This commit is contained in:
@@ -2,7 +2,6 @@
|
||||
|
||||
use crossterm::event::{KeyEvent, KeyCode, KeyModifiers};
|
||||
use crate::tui::terminal::{
|
||||
core::TerminalCore,
|
||||
grpc_client::GrpcClient,
|
||||
};
|
||||
use crate::config::config::Config;
|
||||
@@ -15,11 +14,10 @@ pub async fn handle_edit_event_internal(
|
||||
form_state: &mut FormState,
|
||||
ideal_cursor_column: &mut usize,
|
||||
command_message: &mut String,
|
||||
terminal: &mut TerminalCore,
|
||||
is_saved: &mut bool,
|
||||
current_position: &mut u64,
|
||||
total_count: u64,
|
||||
grpc_client: &mut GrpcClient, // Changed from AppTerminal
|
||||
grpc_client: &mut GrpcClient,
|
||||
) -> Result<String, Box<dyn std::error::Error>> {
|
||||
if let Some(action) = config.get_edit_action_for_key(key.code, key.modifiers) {
|
||||
return execute_edit_action(
|
||||
|
||||
@@ -131,11 +131,10 @@ impl EventHandler {
|
||||
form_state,
|
||||
&mut self.ideal_cursor_column,
|
||||
&mut self.command_message,
|
||||
terminal,
|
||||
is_saved,
|
||||
current_position,
|
||||
total_count,
|
||||
grpc_client, // Moved to end to match parameter order
|
||||
grpc_client,
|
||||
).await?;
|
||||
|
||||
self.key_sequence_tracker.reset();
|
||||
|
||||
Reference in New Issue
Block a user