aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2017-09-02 18:23:17 +0200
committerLeah Neukirchen <leah@vuxu.org>2017-09-02 18:23:17 +0200
commit7c1c2c374033de92e178b0f1d91792abc0f51412 (patch)
tree1baf571f899897c7259f9b254946825badaad234
parent3bfd9319e9e7385f97d5a32e36bb53890731b110 (diff)
downloadmblaze-7c1c2c374033de92e178b0f1d91792abc0f51412.tar.gz
mflow: flowed: add case where the word is too long for a line
-rw-r--r--mflow.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mflow.c b/mflow.c
index 4726fec..26f2f32 100644
--- a/mflow.c
+++ b/mflow.c
@@ -75,7 +75,8 @@ flowed(int quotes, char *line, ssize_t linelen)
done = 1;
}
- if (column + (eow - line) > maxcolumn) {
+ if (column + (eow - line) > maxcolumn &&
+ eow - line < maxcolumn) {
putchar('\n');
column = 0;
if (*line == ' ') {