From 24521a659158395638946e033f53a444a59cb79f Mon Sep 17 00:00:00 2001 From: Lucas Trzesniewski Date: Mon, 2 Feb 2026 21:25:42 +0100 Subject: fix: larger exit column width on Windows (#3119) The default width of the `exit` column is 3, which matches the 0-255 values on Linux. However, on Windows it is a 32-bit integer, and can be anything from -2147483648 to 2147483647. Popular tools such as `winget` apparently make use of that. Here's an example with `columns = ["exit", "time", "duration", "directory", "command"]`: image This PR changes the default column width to 11 on Windows to match these values. The result is: image ## Checks - [x] I am happy for maintainers to push small adjustments to this PR, to speed up the review cycle - [x] I have checked that there are no existing pull requests for the same thing --- crates/atuin-client/src/settings.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/crates/atuin-client/src/settings.rs b/crates/atuin-client/src/settings.rs index d849e816..a988e145 100644 --- a/crates/atuin-client/src/settings.rs +++ b/crates/atuin-client/src/settings.rs @@ -509,7 +509,13 @@ impl UiColumnType { UiColumnType::Directory => 20, UiColumnType::Host => 15, UiColumnType::User => 10, - UiColumnType::Exit => 3, + UiColumnType::Exit => { + if cfg!(windows) { + 11 // 32-bit integer on Windows: "-1978335212" + } else { + 3 // Usually a byte on Unix + } + } UiColumnType::Command => 0, // Expands to fill } } -- cgit v1.3.1