summaryrefslogtreecommitdiffstats
path: root/grep-printer/src/standard.rs
diff options
context:
space:
mode:
Diffstat (limited to 'grep-printer/src/standard.rs')
-rw-r--r--grep-printer/src/standard.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/grep-printer/src/standard.rs b/grep-printer/src/standard.rs
index 6146a8b9..183fa4b5 100644
--- a/grep-printer/src/standard.rs
+++ b/grep-printer/src/standard.rs
@@ -1201,6 +1201,9 @@ impl<'a, M: Matcher, W: WriteColor> StandardImpl<'a, M, W> {
if !self.wtr().borrow().supports_color() || spec.is_none() {
return self.write_line(line);
}
+ if self.exceeds_max_columns(line) {
+ return self.write_exceeded_line();
+ }
let mut last_written =
if !self.config().trim_ascii {