@matheusbsbs / matheus-bagliano / commits / d585e782b0
Fork 0

git-gui: Focus into blame panels on Mac OS.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>

Shawn O. Pearce committed Feb 9, 2007 at 02:28 UTC d585e782b0bfb11173028091cb11c8459766135c
1 file changed +3 -1
git-gui.sh
+3 -1
@@ -3339,7 +3339,7 @@ proc show_blame {commit path} {
3339 $w.out.linenumber_t \\
3340 $w.out.file_t \\
3341 $i @%x,%y
3342 - break
3342 + focus $i
3343 "
3344 bind_button3 $i "
3345 set cursorX %x
@@ -3349,6 +3349,7 @@ proc show_blame {commit path} {
3349 "
3350 }
3351
3352 + bind $w.cm.t <Button-1> "focus $w.cm.t"
3353 bind $tl <Visibility> "focus $tl"
3354 bind $tl <Destroy> "
3355 array unset blame_status {$w}
@@ -3428,6 +3429,7 @@ proc read_blame_incremental {fd w w_load w_cmit w_line w_file} {
3429 $w_file tag conf g$cmit
3430 $w_line tag raise in_sel
3431 $w_file tag raise in_sel
3432 + $w_file tag raise sel
3433 set blame_data($w,$cmit,order) $blame_data($w,commit_count)
3434 incr blame_data($w,commit_count)
3435 lappend blame_data($w,commit_list) $cmit