summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/src/cmd/mothra/mothra.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/src/cmd/mothra/mothra.c b/sys/src/cmd/mothra/mothra.c
index 92f4f0ef4..dc2ef56ce 100644
--- a/sys/src/cmd/mothra/mothra.c
+++ b/sys/src/cmd/mothra/mothra.c
@@ -3,7 +3,6 @@
*/
#include <u.h>
#include <libc.h>
-#include <ctype.h>
#include <draw.h>
#include <event.h>
#include <keyboard.h>
@@ -542,7 +541,7 @@ void docmd(Panel *p, char *s){
break;
case 'j':
s=arg(s);
- if(isdigit(s))
+ if(*s)
geturl(www(atoi(s)-1)->url->fullname, GET, 0, 0, 0);
else
message("no url selected");