Fixed reversed logic error for --chop-long-lines

This commit is contained in:
John Higgins 2022-10-09 22:41:27 -07:00
parent a272d3df16
commit 375b392478
No known key found for this signature in database
GPG Key ID: 192DF5D301BD714C
1 changed files with 2 additions and 3 deletions

View File

@ -174,9 +174,8 @@ impl App {
}
_ => unreachable!("other values for --wrap are not allowed"),
}
}
else {
WrappingMode::NoWrapping(true)
} else {
WrappingMode::Character
}
} else {
// We don't have the tty width when piping to another program.