git: 9front

Download patch

ref: fcb29de25ef3fc4ae82f09bf39e92447aaa51d85
parent: a2f5f47d218aa49ba6a79cde319a185e80255e87
author: stanley lieber <stanley.lieber@gmail.com>
date: Thu Sep 22 20:52:47 EDT 2011

mothra: don't use isdigit()

--- 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 @@
 		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");
--