Skip to content

Commit

Permalink
💄 Clip cli text width to 80 chars
Browse files Browse the repository at this point in the history
  • Loading branch information
giacomocavalieri committed Jan 20, 2025
1 parent 3a345a1 commit 66dc393
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/squirrel.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,9 @@ fn compare_token_lists(
// --- PRETTY REPORT PRINTING --------------------------------------------------

fn term_width() -> Int {
term_size.columns() |> result.unwrap(80)
term_size.columns()
|> result.unwrap(80)
|> int.min(80)
}

fn report_written_queries(
Expand Down

0 comments on commit 66dc393

Please sign in to comment.