Browse Source

rm useless check

master
Daniel Micay 9 years ago
parent
commit
ea31f4c3e3
  1. 2
      termite.cc

2
termite.cc

@ -144,7 +144,7 @@ static void launch_url(const char *text, search_panel_info *info) {
char *end;
errno = 0;
unsigned long id = strtoul(token, &end, 10);
if (!errno && end != text && id && id <= info->url_list.size()) {
if (!errno && id && id <= info->url_list.size()) {
launch_browser(info->url_list[id - 1].url.get());
} else {
g_printerr("url hint invalid: %s\n", token);

Loading…
Cancel
Save