shithub: riscv

Download patch

ref: 205a39474c0a7ec55bdde53612db8f704779fbf2
parent: 97a86f27664756380aa9421266b1e365c0c7cabf
author: cinap_lenrek <cinap_lenrek@centraldogma>
date: Thu Oct 13 02:18:57 EDT 2011

rio: use -scroll parameter from attach message

--- a/sys/src/cmd/rio/xfid.c
+++ b/sys/src/cmd/rio/xfid.c
@@ -161,6 +161,7 @@
 	err = Eunkid;
 	newlymade = FALSE;
 	hideit = 0;
+	scrollit = scrolling;
 
 	if(x->aname[0] == 'N'){	/* N 100,100, 200, 200 - old syntax */
 		n = x->aname+1;
@@ -189,7 +190,7 @@
 				border(i, r, Selborder, display->black, ZP);
 				if(pid == 0)
 					pid = -1;	/* make sure we don't pop a shell! - UGH */
-				w = new(i, hideit, scrolling, pid, nil, nil, nil);
+				w = new(i, hideit, scrollit, pid, nil, nil, nil);
 				flushimage(display, 1);
 				newlymade = TRUE;
 			}else