From 8035bb7dd1a83e3b98b3bb54defe0dbf35c861cf Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Wed, 26 Sep 2012 19:00:50 +0200 Subject: [PATCH] mothra: never snarf the "Go:" box --- sys/src/cmd/mothra/mothra.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/sys/src/cmd/mothra/mothra.c b/sys/src/cmd/mothra/mothra.c index f7206bfd7..a4ea2202f 100644 --- a/sys/src/cmd/mothra/mothra.c +++ b/sys/src/cmd/mothra/mothra.c @@ -1023,11 +1023,11 @@ void killpix(Www *w){ 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;