aboutsummaryrefslogtreecommitdiff
path: root/degesch.c
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2016-03-26 16:41:55 +0100
committerPřemysl Janouch <p.janouch@gmail.com>2016-03-26 16:41:55 +0100
commitf964495d1ac6587f04a3e2d216af512e240c8bed (patch)
tree06ec0c05846cbe16e286c66fc46f01320711c56b /degesch.c
parent550a0419a64f01e8b14f5ecaed6f1b8d190837f5 (diff)
downloadxK-f964495d1ac6587f04a3e2d216af512e240c8bed.tar.gz
xK-f964495d1ac6587f04a3e2d216af512e240c8bed.tar.xz
xK-f964495d1ac6587f04a3e2d216af512e240c8bed.zip
degesch: don't wrap lines in pager
Diffstat (limited to 'degesch.c')
-rw-r--r--degesch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/degesch.c b/degesch.c
index 7b83dd4..ed55e24 100644
--- a/degesch.c
+++ b/degesch.c
@@ -3553,7 +3553,7 @@ formatter_flush (struct formatter *self, FILE *stream, bool raw_attributes)
return;
}
- if (self->ctx->word_wrapping)
+ if (get_attribute_printer (stream) && self->ctx->word_wrapping)
line = line_wrap (line, g_terminal.columns);
// TODO: rewrite the sloppily hacked mess around attribute_printer;