shithub: neatroff

Download patch

ref: e90cb537e4742c28d1da1212a1b22d434a5b7f7b
parent: 4e99f4ced5a4380fcc86510026cbfb1a0c65f3de
author: Ali Gholami Rudi <ali@rudi.ir>
date: Sun Sep 28 20:29:24 EDT 2014

ren: limit negative .sp requests to the top of the page

--- a/ren.c
+++ b/ren.c
@@ -233,7 +233,7 @@
 {
 	if (ren_traps(n_d, n_d + (n ? n : n_v), 1))
 		return 1;
-	ren_sp(n, 0);
+	ren_sp(MAX(n, -n_d), 0);
 	return ren_pagelimit(0);
 }