[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#245673: info: return the first non-exact match instead of the last



On 24.04.04 18:00, Andrew Pimlott wrote:

Dear Andrew,

Currently (6.5.0.dfsg.1-4) info seems to read /usr/share/info/dir and
then displays the first found entry matching the entered substring. This
seesm to be correct for me.

Can we close that bug? Thanks!

Hilmar

> This bug is spawned from
> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=213618 .
> 
> When looking for an info page to display when I type "info foo", the
> stand-alone info reader looks for an exact match (returning the first
> hit), then a case-insensitive match (returning the first hit), then a
> case-insensitive prefix match (returning the last hit).  (This is in
> info_follow_menus.)
> 
> The part about returning the last hit in the prefix match is somewhat
> odd.  It is not really wrong, but it would be more consistent and
> slightly more intuitive to return the first hit.  The appended patch
> makes this change.
> 

-- 
sigfault
#206401 http://counter.li.org

Attachment: signature.asc
Description: OpenPGP digital signature


Reply to: