shithub: neatroff

Download patch

ref: 8826dc408b2d84b4b5d987541a4fac21d3cd6e32
parent: 85a9a58654332424c4f865e430c502416f15cdf0
author: Ali Gholami Rudi <ali@rudi.ir>
date: Wed Apr 17 10:06:17 EDT 2013

ren: add \n(.a

--- a/ren.c
+++ b/ren.c
@@ -235,6 +235,8 @@
 			ren_sp(els_pos);
 		if (!ren_traps(prev_d, n_d, 0))
 			ren_pagelimit(0);
+		if (els_pos >= 0)
+			n_a = els_pos;
 	}
 }
 
--- a/xroff.h
+++ b/xroff.h
@@ -186,6 +186,7 @@
 
 /* builtin number registers; n_X for .X register */
 #define REG(c1, c2)	((c1) * 256 + (c2))
+#define n_a		(*nreg(REG('.', 'a')))
 #define n_d		(*nreg(REG('.', 'd')))
 #define n_f		(*nreg(REG('.', 'f')))
 #define n_i		(*nreg(REG('.', 'i')))