From 90faf64b1a18e179f6896df90a4537e96ffa54f5 Mon Sep 17 00:00:00 2001 From: codaMW Date: Fri, 6 Mar 2026 06:06:56 +0200 Subject: [PATCH] fix(orders): prevent UUID truncation in listorders table Order IDs were being truncated and wrapped across multiple lines making them impossible to copy and use in other commands like takebuy, takesell, cancel etc. Added Absolute column constraint (Width::Fixed(38)) on the Order ID column (index 1) to ensure full UUIDs always display on a single line regardless of terminal width or other column content. --- src/parser/orders.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/parser/orders.rs b/src/parser/orders.rs index 80a0334..3665103 100644 --- a/src/parser/orders.rs +++ b/src/parser/orders.rs @@ -286,6 +286,11 @@ pub fn print_orders_table(orders_table: Vec) -> Result { table.add_rows(rows); + // Set minimum width on Order ID column (index 1) to prevent UUID truncation + if let Some(col) = table.column_mut(1) { + col.set_constraint(ColumnConstraint::Absolute(Width::Fixed(38))); + } + Ok(table.to_string()) }