shithub: neatroff

Download patch

ref: 173ca7a5e90175d12798dbbff8dd0ed75faf3bea
parent: 167ebd7f1339a380fcbb96daa806afcbf438a0ae
author: Ali Gholami Rudi <ali@rudi.ir>
date: Tue Sep 16 04:24:16 EDT 2014

char: unlike \s20, \s+20 should be parsed as \s+2\&0

Reported by Carsten Kunze <carsten.kunze@arcor.de>.

--- a/char.c
+++ b/char.c
@@ -71,6 +71,7 @@
 {
 	int c = next();
 	if (cmd == 's' && (c == '-' || c == '+')) {
+		cmd = c;
 		*d++ = c;
 		c = next();
 	}