Re: [Cgdb-devel] Weird behavior during file-dialog regex search?
Brought to you by:
bobbybrasko,
crouchingturbo
From: Gilboa D. <gi...@gm...> - 2010-11-11 12:01:05
|
On Wed, 2010-11-10 at 21:54 -0500, Bob Rossi wrote: > On Thu, Oct 28, 2010 at 10:05:15AM +0200, Gilboa Davara wrote: > > Hello, > > > > I'm trying to solve a bug in Fedora version of CGDB (which I maintain). > > When doing a regular expression search inside the file selection dialog, > > pressing enter does not select the file, instead, it simply jumps to the > > next match. > > The only way to select the first matching file is to press Enter twice. > > > > By looking at the code (capture_regex in filedlg.c) it seems that > > pressing Enter triggers a search for the next match, instead of simply > > selecting the last highlight. > > Given the fact that cgdb is doing regex-as-you-type search, shouldn't > > cgdb assume that once I press enter, as-you-type search already > > highlighted the last match? > > OK, that is a really annoying bug, I don't know how I haven't seen > this before. Thanks. > > I'll have to figure out how to fix this for the next release. Happy to help. If you could drop me a fix (or even point me at the right direction) I'll push an update for Fedora 12/13/14 and RHEL5. > > Bob - Gilboa P.S. Did you have a change to look at the focus patch? |