ref: 31846b170584720ff92cb53cbba3db259059041a
parent: c289ab80f77deaa184086107341f12a8408bd064
author: Ali Gholami Rudi <ali@rudi.ir>
date: Fri Jun 14 18:56:55 EDT 2013
ren: output non-empty but zero-width lines
--- a/ren.c
+++ b/ren.c
@@ -246,7 +246,7 @@
prev_d = n_d;
if (els_neg)
ren_sp(-els_neg, 1);
- if (!n_ns || w || els_neg || els_pos) {
+ if (!n_ns || !sbuf_empty(&sbuf) || els_neg || els_pos) {
ren_sp(0, 0);
ren_line(sbuf_buf(&sbuf), w, ad, ll, li, lt);
n_ns = 0;