So "g" opens Google while "g cat" uses Google to search for cats.
search_uri = NULL;
/* Do we have a keyword and a string? */
parts = g_strsplit (uri, " ", 2);
- if (parts[0] && parts[1])
+ if (parts[0])
if ((item = katze_array_find_token (search_engines, parts[0])))
{
search_uri = katze_item_get_uri (item);
- search = sokoke_search_uri (search_uri, parts[1]);
+ search = sokoke_search_uri (search_uri, parts[1] ? parts[1] : "");
}
g_strfreev (parts);
return search;
test_input ("max@mustermann.de", NULL);
test_input ("g max@mustermann.de", NULL);
test_input ("g inurl:http://twotoasts.de bug", NULL);
+ test_input ("sm", SM);
}
static void