shithub: neatroff

Download patch

ref: cb8744b2dfdb19eac2358bea7f8ef2c698b3cbef
parent: ae93e5a896bb530f4b4d18dba1ebb53cb8bb640b
author: Ali Gholami Rudi <ali@rudi.ir>
date: Fri Aug 8 13:41:30 EDT 2014

ren: allow .tl with no arguments

--- a/ren.c
+++ b/ren.c
@@ -840,6 +840,8 @@
 	wb_init(&wb);
 	wb_init(&wb2);
 	charnext(delim, next, back);
+	if (!strcmp("\n", delim))
+		back('\n');
 	/* the left-adjusted string */
 	ren_until(&wb2, delim, NULL, next, back);
 	wb_cpy(&wb, &wb2, 0);