Re: [dev] [surf] SearchEngines patch

From: Nils <mail_AT_n-sch.de>
Date: Wed, 23 Sep 2009 23:06:14 +0200

On Wed, Sep 23, 2009 at 04:08:37PM +0200, cryptix wrote:
> Due to the removal of the prefix = g_strdup_printf("%s ",
> searchengines[i].token) line, another bug sneaked in.
> With the {"g“, "http://google.com/search?q=%s"}, SearchEngine in
> place, opening any url starting with g applies this SearchEngine.

Jup, I fixed this by adding a

> ... || *(uri + strlen(searchengines[i].token)) != ' '

to the "continue-if". New patch is uploaded on surf.suckless.org.

Nils
Received on Wed Sep 23 2009 - 21:06:14 UTC

This archive was generated by hypermail 2.2.0 : Wed Sep 23 2009 - 21:12:03 UTC