From 25f9abeb4c69024f8d9dceb472ba33c03e00daa0 Mon Sep 17 00:00:00 2001 From: salmonik Date: Wed, 28 Oct 2026 22:36:07 +0100 Subject: v0.2.5: fix terminal width, ping timing and output formatting --- src/client/core.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/client/core.rs') diff --git a/src/client/core.rs b/src/client/core.rs index a910a68..c204cb2 100644 --- a/src/client/core.rs +++ b/src/client/core.rs @@ -1,8 +1,8 @@ use crate::client::games::manager::GameManager; use crate::client::games::response::parse_spin_response; use crate::client::ui::{ - command_names, completion_lines, help_lines, input_cursor_column, parse_bet_arg, - record_history, + command_names, completion_lines, display_width, help_lines, input_cursor_column, + parse_bet_arg, record_history, }; #[derive(Debug, Clone, Copy, PartialEq, Eq)] @@ -120,7 +120,7 @@ impl ClientCore { } Some(Effect::SetPrompt { text: self.input.clone(), - cursor_col: input_cursor_column(2, self.input.chars().count()), + cursor_col: input_cursor_column(2, display_width(&self.input)), }) } -- cgit v1.2.3