gitk: Fix bug causing Tcl error when changing find match type
When changing the selector for Exact/IgnCase/Regexp, we were getting a Tcl error. This fixes it. It also adds a workaround for a bug in alpha versions of Tk8.5 where wordprocessor-style tabs don't seem to work properly around column 1. Signed-off-by: Paul Mackerras <paulus@samba.org>
Paul Mackerras committed
Oct 4, 2007 at 22:19 UTC
64b5f146fd2252646d23eac925c49ce9cb526de9
1 file changed
+3
-3
gitk
+3
-3
@@ -2334,7 +2334,7 @@ proc find_change {name ix op} {
2334
drawvisible
2335
}
2336
2337
-proc findcom_change {} {
2337
+proc findcom_change args {
2338
global nhighlights mainfont boldnamerows
2339
global findpattern findtype findstring gdttype
2340
@@ -5529,8 +5529,8 @@ proc settabs {{firstab {}}} {
5529
}
5530
set w [font measure $textfont "0"]
5531
if {$firsttabstop != 0} {
5532
- $ctext conf -tabs [list [expr {$firsttabstop * $w}] \
5533
- [expr {($firsttabstop + $tabstop) * $w}]]
5532
+ $ctext conf -tabs [list [expr {($firsttabstop + $tabstop) * $w}] \
5533
+ [expr {($firsttabstop + 2 * $tabstop) * $w}]]
5534
} elseif {$have_tk85 || $tabstop != 8} {
5535
$ctext conf -tabs [expr {$tabstop * $w}]
5536
} else {