Skip to content

Commit

Permalink
If spaces in URL and no search_url prefix, assume want to search and …
Browse files Browse the repository at this point in the history
…use first search_url.
  • Loading branch information
w00fpack committed Nov 7, 2021
1 parent d8b885b commit 52bb58e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/uicmd.cc
Original file line number Diff line number Diff line change
Expand Up @@ -685,10 +685,15 @@ static char *UIcmd_find_search_str(const char *str)
if (search && strncasecmp(str, search, len) == 0) {
prefs.search_url_idx = p;
url = UIcmd_make_search_str(str + len + 1);
return url;
break;
}
}

prefs.search_url_idx = 0;
url = UIcmd_make_search_str(str);
}

return url;
}

Expand Down

0 comments on commit 52bb58e

Please sign in to comment.