git: 9front

Download patch

ref: 347d8313a068026f3f02dc86f43f1216343e8699
parent: 58a5c05667c766eba3269a1226bca63e7094a22e
author: cinap_lenrek <cinap_lenrek@gmx.de>
date: Wed Sep 26 15:00:50 EDT 2012

mothra: never snarf the "Go:" box

--- a/sys/src/cmd/mothra/mothra.c
+++ b/sys/src/cmd/mothra/mothra.c
@@ -1023,11 +1023,11 @@
 	updtext(w);
 }
 void snarf(Panel *p){
-	if(p==0) p=cmd;
-	plputsnarf(urlstr(selection));
-	/* non-ops if nothing selected */
-	plsnarf(p);
-	plsnarf(text);
+	if(p==0 || p==cmd){
+		plputsnarf(urlstr(selection));
+		plsnarf(text);
+	}else
+		plsnarf(p);
 }
 void paste(Panel *p){
 	if(p==0) p=cmd;
--