Skip to content

Commit d585e78

Browse files
committed
git-gui: Focus into blame panels on Mac OS.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
1 parent 486ef52 commit d585e78

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

git-gui.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3339,7 +3339,7 @@ proc show_blame {commit path} {
33393339
$w.out.linenumber_t \\
33403340
$w.out.file_t \\
33413341
$i @%x,%y
3342-
break
3342+
focus $i
33433343
"
33443344
bind_button3 $i "
33453345
set cursorX %x
@@ -3349,6 +3349,7 @@ proc show_blame {commit path} {
33493349
"
33503350
}
33513351

3352+
bind $w.cm.t <Button-1> "focus $w.cm.t"
33523353
bind $tl <Visibility> "focus $tl"
33533354
bind $tl <Destroy> "
33543355
array unset blame_status {$w}
@@ -3428,6 +3429,7 @@ proc read_blame_incremental {fd w w_load w_cmit w_line w_file} {
34283429
$w_file tag conf g$cmit
34293430
$w_line tag raise in_sel
34303431
$w_file tag raise in_sel
3432+
$w_file tag raise sel
34313433
set blame_data($w,$cmit,order) $blame_data($w,commit_count)
34323434
incr blame_data($w,commit_count)
34333435
lappend blame_data($w,commit_list) $cmit

0 commit comments

Comments
 (0)