Skip to content

Commit

Permalink
Allow user-supplied width to exceed terminal width
Browse files Browse the repository at this point in the history
  • Loading branch information
dandavison committed Jul 11, 2020
1 parent 0266821 commit 876b7b8
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/options/set.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
use std::cmp::min;
use std::collections::{HashMap, HashSet, VecDeque};
use std::process;

Expand Down Expand Up @@ -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),
Expand Down

0 comments on commit 876b7b8

Please sign in to comment.