diff options
-rwxr-xr-x | git-gui.sh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/git-gui.sh b/git-gui.sh index 193b46d7f..53e890af0 100755 --- a/git-gui.sh +++ b/git-gui.sh @@ -3425,7 +3425,12 @@ proc read_blame_incremental {fd w w_cmit w_line w_file} { $w_line tag add g$cmit $lno.0 "$lno.0 lineend + 1c" $w_file tag add g$cmit $lno.0 "$lno.0 lineend + 1c" - if {$blame_data($w,highlight_line) == $lno} { + if {$blame_data($w,highlight_line) == -1} { + if {[lindex [$w_file yview] 0] == 0} { + $w_file see $lno.0 + blame_showcommit $w $w_cmit $w_line $w_file $lno + } + } elseif {$blame_data($w,highlight_line) == $lno} { blame_showcommit $w $w_cmit $w_line $w_file $lno } |