shithub: riscv

Download patch

ref: 3b1e582fc6dc1904a28b1cf71ea0b7e1c47f3f35
parent: b3e120ecb6b363d2e3c58277097e53513e7d011b
author: cinap_lenrek <cinap_lenrek@gmx.de>
date: Tue Jun 25 22:28:16 EDT 2013

samterm: fix crash on scroll when there is no layer (thanks BurnZeZ)

--- a/sys/src/cmd/samterm/main.c
+++ b/sys/src/cmd/samterm/main.c
@@ -310,6 +310,9 @@
 {
 	Text *t=(Text *)l->user1;
 
+	if(t->tag == Untagged)
+		return;
+
 	switch(but){
 	case 1:
 		outTsll(Torigin, t->tag, l->origin, p0);
--