aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShawn O. Pearce <spearce@spearce.org>2007-02-09 02:28:32 -0500
committerShawn O. Pearce <spearce@spearce.org>2007-02-09 02:28:32 -0500
commitd585e782b0bfb11173028091cb11c8459766135c (patch)
tree273165dfcd52b34b1049f25c7669c38355f18f57
parent486ef5270ce3162ee14634db825884cc466a32bf (diff)
downloadgit-d585e782b0bfb11173028091cb11c8459766135c.tar.gz
git-d585e782b0bfb11173028091cb11c8459766135c.tar.xz
git-gui: Focus into blame panels on Mac OS.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
-rwxr-xr-xgit-gui.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/git-gui.sh b/git-gui.sh
index d3cf57af5..f44e54909 100755
--- a/git-gui.sh
+++ b/git-gui.sh
@@ -3339,7 +3339,7 @@ proc show_blame {commit path} {
$w.out.linenumber_t \\
$w.out.file_t \\
$i @%x,%y
- break
+ focus $i
"
bind_button3 $i "
set cursorX %x
@@ -3349,6 +3349,7 @@ proc show_blame {commit path} {
"
}
+ bind $w.cm.t <Button-1> "focus $w.cm.t"
bind $tl <Visibility> "focus $tl"
bind $tl <Destroy> "
array unset blame_status {$w}
@@ -3428,6 +3429,7 @@ proc read_blame_incremental {fd w w_load w_cmit w_line w_file} {
$w_file tag conf g$cmit
$w_line tag raise in_sel
$w_file tag raise in_sel
+ $w_file tag raise sel
set blame_data($w,$cmit,order) $blame_data($w,commit_count)
incr blame_data($w,commit_count)
lappend blame_data($w,commit_list) $cmit