1
0
mirror of https://git.sr.ht/~sircmpwn/gmni synced 2024-11-23 09:02:04 +01:00

Correct oversight which broke link following

This commit is contained in:
Drew DeVault 2020-09-20 22:11:13 -04:00
parent f4a4be2513
commit bb696e6e28

@ -164,7 +164,7 @@ do_prompts(const char *prompt, struct browser *browser)
struct link *link = browser->links;
char *endptr;
int linksel = (int)strtol(in, &endptr, 10);
if (endptr[0] == '\n' && linksel >= 0) {
if (!endptr[0] && linksel >= 0) {
while (linksel > 0 && link) {
link = link->next;
--linksel;