shithub: neatroff

Download patch

ref: 7e7c94ae13d01d4796a27975f1be818d2111079a
parent: 6fe0e21ff76db6961e43bd595dfa9253def352fb
author: Ali Gholami Rudi <ali@rudi.ir>
date: Sat May 4 15:13:43 EDT 2013

ren: for .sp call down() only for nonzero arguments

--- a/ren.c
+++ b/ren.c
@@ -276,10 +276,11 @@
 void tr_sp(char **args)
 {
 	int traps = 0;
+	int n = args[1] ? eval(args[1], 'v') : n_v;
 	if (args[0][0] == c_cc)
 		traps = ren_br(1);
-	if (!n_ns && !traps)
-		down(args[1] ? eval(args[1], 'v') : n_v);
+	if (n && !n_ns && !traps)
+		down(n);
 }
 
 void tr_sv(char **args)