From 375b392478586690f53b2667d356aba928ce8c57 Mon Sep 17 00:00:00 2001 From: John Higgins Date: Sun, 9 Oct 2022 22:41:27 -0700 Subject: [PATCH] Fixed reversed logic error for --chop-long-lines --- src/bin/bat/app.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/bin/bat/app.rs b/src/bin/bat/app.rs index b52aa265..eeaa7b39 100644 --- a/src/bin/bat/app.rs +++ b/src/bin/bat/app.rs @@ -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.