1
0
Fork 0
mirror of https://git.sr.ht/~sircmpwn/gmni synced 2024-06-03 06:56:03 +02:00

Fix search command

This commit is contained in:
Drew DeVault 2020-09-23 12:55:12 -04:00
parent 9f98e013a6
commit 0976b0e446

View File

@ -246,7 +246,7 @@ do_prompts(const char *prompt, struct browser *browser)
result = PROMPT_ANSWERED;
goto exit;
case '/':
if (in[1]) break;
if (!in[1]) break;
if ((r = regcomp(&browser->regex, &in[1], REG_EXTENDED)) != 0) {
static char buf[1024];
r = regerror(r, &browser->regex, buf, sizeof(buf));