diff --git a/src/gmnlm.c b/src/gmnlm.c

index 07d0000babe7cd51876ead407e83c3062adfda56..07b699134c0c71a20d4780148ad74cb246634549 100644

--- a/src/gmnlm.c

+++ b/src/gmnlm.c

@@ -69,7 +69,7 @@ const char *help_msg =

"The following commands are available:\n\n"

"q\tQuit\n"

"N\tFollow Nth link (where N is a number)\n"

- "p N\tShow URL of Nth link (where N is a number)\n"

+ "p[N]\tShow URL of Nth link (where N is a number)\n"

"b\tBack (in the page history)\n"

"f\tForward (in the page history)\n"

"H\tView all page history\n"

@@ -303,7 +303,7 @@ result = PROMPT_AGAIN;

goto exit;

}

case 'p':

- if (!isspace(in[1])) break;

+ if (!in[1]) break;

struct link *link = browser->links;

char *endptr;

int linksel = (int)strtol(in+1, &endptr, 10);