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;