-anchor w \
-justify left
set w_back $w.header.commit_b
- button $w_back \
- -command [cb _history_menu] \
+ label $w_back \
-image ::blame::img_back_arrow \
-borderwidth 0 \
-relief flat \
-state disabled \
-background orange \
-activebackground orange
+ bind $w_back <Button-1> "
+ if {\[$w_back cget -state\] eq {normal}} {
+ [cb _history_menu]
+ }
+ "
label $w.header.commit \
-textvariable @commit \
-background orange \
}
if {![catch {set summary $header($c,summary)}]} {
append t " $summary"
+ if {[string length $t] > 70} {
+ set t [string range $t 0 66]...
+ }
}
$m add command -label $t -command [cb _goback $i $c $f]
set first_lno $lno
while {
- ![catch {set ncmit $line_commit([expr {$first_lno - 1}])}]
+ ![catch {set ncmit $line_commit([expr {$first_lno - 1}])}]
+ && ![catch {set nfile $line_file([expr {$first_lno - 1}])}]
&& $ncmit eq $cmit
+ && $nfile eq $file
} {
incr first_lno -1
}
incr blame_lines
}
- while {![catch {set ncmit $line_commit($lno)}]
- && $ncmit eq $cmit} {
+ while {
+ ![catch {set ncmit $line_commit($lno)}]
+ && ![catch {set nfile $line_file($lno)}]
+ && $ncmit eq $cmit
+ && $nfile eq $file
+ } {
$w_cgrp delete $lno.0 "$lno.0 lineend"
if {$lno == $first_lno} {
$author_name $author_email $author_time
$summary"
+ set file $line_file($lno)
+ if {$file ne $path} {
+ append tooltip_text "
+
+Original File: $file"
+ }
+
if {$tooltip_wm ne "$cur_w.tooltip"} {
_hide_tooltip $this