Re: [dwm] Some things about dmenu...

From: Sander van Dijk <a.h.vandijk_AT_gmail.com>
Date: Wed, 12 Mar 2008 20:14:24 +0100

On Wed, Mar 12, 2008 at 7:53 PM, Sander van Dijk <a.h.vandijk_AT_gmail.com> wrote:
> On Tue, Mar 11, 2008 at 11:06 PM, Anselm R. Garbe <arg_AT_suckless.org> wrote:
>
> > Ok, makes sense to me/I will change the code accordingly
> > tomorrow.
>
> Hg tip also needs an fstrncmp function pointer to point to either
> strncmp or strncasecmp (right now, match() is hardcoded to use
> strncasecmp; this should only be the case when -i is given).

Here's a patch. Aside from implementing what I described, it also
removes some no-longer-needed stuff and simplifies the loop in match()
(and, to top it off, makes sure that the order of items is preserved
when narrowing the set, something that unfortunately wasn't the case
with 3.4...).

Gr. Sander.

Received on Wed Mar 12 2008 - 20:14:26 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:25:18 UTC