diff options
| author | salmonik <salmonik@tuta.io> | 2026-10-28 22:36:07 +0100 |
|---|---|---|
| committer | salmonik <salmonik@tuta.io> | 2026-10-28 22:36:07 +0100 |
| commit | 25f9abeb4c69024f8d9dceb472ba33c03e00daa0 (patch) | |
| tree | a02a78f04b5afa2e3fbebffb524f1568df8f00d8 /src/client/core.rs | |
| parent | v0.2.4: fix command UX, completion wrapping and auth prompt cancellation (diff) | |
| download | zagan-bet-25f9abeb4c69024f8d9dceb472ba33c03e00daa0.tar.gz zagan-bet-25f9abeb4c69024f8d9dceb472ba33c03e00daa0.zip | |
v0.2.5: fix terminal width, ping timing and output formatting
Diffstat (limited to '')
| -rw-r--r-- | src/client/core.rs | 6 |
1 files changed, 3 insertions, 3 deletions
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 @@ | |||
| 1 | use crate::client::games::manager::GameManager; | 1 | use crate::client::games::manager::GameManager; |
| 2 | use crate::client::games::response::parse_spin_response; | 2 | use crate::client::games::response::parse_spin_response; |
| 3 | use crate::client::ui::{ | 3 | use crate::client::ui::{ |
| 4 | command_names, completion_lines, help_lines, input_cursor_column, parse_bet_arg, | 4 | command_names, completion_lines, display_width, help_lines, input_cursor_column, |
| 5 | record_history, | 5 | parse_bet_arg, record_history, |
| 6 | }; | 6 | }; |
| 7 | 7 | ||
| 8 | #[derive(Debug, Clone, Copy, PartialEq, Eq)] | 8 | #[derive(Debug, Clone, Copy, PartialEq, Eq)] |
| @@ -120,7 +120,7 @@ impl ClientCore { | |||
| 120 | } | 120 | } |
| 121 | Some(Effect::SetPrompt { | 121 | Some(Effect::SetPrompt { |
| 122 | text: self.input.clone(), | 122 | text: self.input.clone(), |
| 123 | cursor_col: input_cursor_column(2, self.input.chars().count()), | 123 | cursor_col: input_cursor_column(2, display_width(&self.input)), |
| 124 | }) | 124 | }) |
| 125 | } | 125 | } |
| 126 | 126 | ||
