ref: ab56322f71018914577c058d2454e2b2d6177b5d
parent: b6d0b1d8ccdc65d5e64cadd4416cfe00429c12b4
author: Ali Gholami Rudi <[email protected]>
date: Mon May 5 13:11:10 EDT 2014
fmt: handle zero line length
--- a/fmt.c
+++ b/fmt.c
@@ -282,7 +282,7 @@
int i, pen = 0;
long cur;
int lwid = 0;
- int llen = FMT_LLEN(f);
+ int llen = MAX(1, FMT_LLEN(f));
if (pos <= 0)
return 0;
if (f->best_pos[pos] >= 0)