diff options
author | cinap_lenrek <cinap_lenrek@gmx.de> | 2012-09-26 19:00:50 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@gmx.de> | 2012-09-26 19:00:50 +0200 |
commit | 8035bb7dd1a83e3b98b3bb54defe0dbf35c861cf (patch) | |
tree | 3638a0f57fbfc5ef002ddf4d05d4dea1363cad4b /sys/src/cmd/mothra | |
parent | 2b7330765aeb322017516ef50f9343cbdda07a95 (diff) |
mothra: never snarf the "Go:" box
Diffstat (limited to 'sys/src/cmd/mothra')
-rw-r--r-- | sys/src/cmd/mothra/mothra.c | 10 |
1 files 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; |