shithub: pdffs

Download patch

ref: 30b1e2c844d0906eda377bae37aae97c526aac15
parent: ee8ac152c7ed0eb09e087212a4e521bb448c7831
author: Noam Preil <noam@pixelhero.dev>
date: Thu Jun 3 16:00:25 EDT 2021

[ops] add Tj

--- a/op.c
+++ b/op.c
@@ -376,7 +376,10 @@
 static int
 thshow(Op *op, Page *p)
 {
-	USED(op, p);
+	Object *o = arrayget(p->stack, 0);
+	if(bufput(&p->buf, (uchar*)o->str, o->len) == -1)
+		sysfatal("OOM");
+	USED(op);
 	return 0;
 }