diff options
author | Dan Davison <dandavison7@gmail.com> | 2020-07-11 12:28:20 -0400 |
---|---|---|
committer | Dan Davison <dandavison7@gmail.com> | 2020-07-11 12:28:20 -0400 |
commit | 876b7b8b549b5352426084dcba4823a418575a6e (patch) | |
tree | 0456868fbd643feb1c6c09322998f309f658131f | |
parent | 026682193b0bee812a5b5cad6a9e462d78e5b81f (diff) |
Allow user-supplied width to exceed terminal width0.3.0
-rw-r--r-- | src/options/set.rs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/options/set.rs b/src/options/set.rs index 5e272574..aacf0584 100644 --- a/src/options/set.rs +++ b/src/options/set.rs @@ -1,4 +1,3 @@ -use std::cmp::min; use std::collections::{HashMap, HashSet, VecDeque}; use std::process; @@ -475,10 +474,7 @@ fn set_widths(opt: &mut cli::Opt) { eprintln!("Could not parse width as a positive integer: {:?}", width); process::exit(1); }); - ( - cli::Width::Fixed(min(width, opt.computed.available_terminal_width)), - true, - ) + (cli::Width::Fixed(width), true) } None => ( cli::Width::Fixed(opt.computed.available_terminal_width), |