shithub: neatroff

Download patch

ref: 869f33d8f99b927b726898ef17fbadd327cac082
parent: 284b1d53c27d66f2ed38286112a6e3bc165e1691
author: Ali Gholami Rudi <[email protected]>
date: Sat May 8 13:23:52 EDT 2021

char: support \sNN only when in compatibility mode

Suggested by aksr <[email protected]>.

--- a/char.c
+++ b/char.c
@@ -89,7 +89,7 @@
 		}
 	} else {
 		sbuf_add(&sb, c);
-		if (cmd == 's' && c >= '1' && c <= '3') {
+		if (n_cp && cmd == 's' && c >= '1' && c <= '3') {
 			c = next();
 			if (isdigit(c))
 				sbuf_add(&sb, c);