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

index 199572c363f9e50acdd052111350f3926d6a350d..5d45ffe7372f71ab32461bf71a590cc494269e96 100644

--- a/src/gmnlm.c

+++ b/src/gmnlm.c

@@ -246,7 +246,7 @@ open_bookmarks(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));