-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Disable wrapping when --plain is used. (Fixes #289) #291
Conversation
@eth-p Thank you very much! It would be great if we could disable wrapping whenever the style is I also wouldn't care too much about setting |
@sharkdp Yeah, that sounds like a better (and more consistent) solution. I removed the disable-wrap functionality from |
src/app.rs
Outdated
@@ -190,7 +190,7 @@ impl App { | |||
.long("plain") | |||
.conflicts_with("style") | |||
.conflicts_with("number") | |||
.help("Show plain style (alias for '--style=plain').") | |||
.help("Show plain style (alias for '--style=plain'.") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a small leftover missing parens here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch! My bad
Thank you for the update. This looks great. |
I guess your |
If it's easier for you to do it before merging, sure. I'm definitely going to update mine in the meantime, though. Edit: Updated my |
I install rustfmt via
|
This is a fix for #289. As I explained in my reply here, it didn't make sense to leave wrapping on with
--plain
, since the terminal is more than capable of wrapping the lines itself when the sidebar isn't used.