]> git.ipfire.org Git - thirdparty/git.git/commit
gitk: Fix bugs in the Find function
authorPaul Mackerras <paulus@samba.org>
Thu, 26 Jul 2007 12:36:39 +0000 (22:36 +1000)
committerPaul Mackerras <paulus@samba.org>
Thu, 26 Jul 2007 12:36:39 +0000 (22:36 +1000)
commit005a2f4e6df7060561817828d4fa4245f87ccadf
tree63ea182100e203439986ac8cb6e5cd4ae20cf59d
parent0eafba1405bf4db29bca0b535477beb3046441bf
gitk: Fix bugs in the Find function

This fixes the problem reported by Brian Downing where searching for
a string that doesn't exist would give a Tcl error.  The basic problem
was that we weren't reading the data for the last commit since it
wasn't terminated with a null.  This effectively adds a null on the end
(if there isn't one already) to make sure we process the last commit.

This also makes the yellow background behind instances of the search
string appear more consistently, and fixes a bug where the "/" key
would just find the same commit again and again instead of advancing.

Signed-off-by: Paul Mackerras <paulus@samba.org>
gitk