1
0
mirror of https://github.com/git/git.git synced 2024-09-30 09:01:24 +02:00

git-gui: Remove empty blank line at end of blame

The blame viewer has this silly blank line at the bottom of it;
we really don't want to see it displayed as we will never get
any blame data for that line (it doesn't exist in the source).

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
This commit is contained in:
Shawn O. Pearce 2007-06-01 00:08:58 -04:00
parent d89a494fca
commit bea39c2ddb

@ -203,10 +203,15 @@ method _read_file {fd} {
regsub "\r\$" $line {} line
incr total_lines
$w_load insert end "\n"
$w_cgrp insert end "\n"
$w_line insert end "$total_lines\n" linenumber
$w_file insert end "$line\n"
if {$total_lines > 1} {
$w_load insert end "\n"
$w_cgrp insert end "\n"
$w_line insert end "\n"
$w_file insert end "\n"
}
$w_line insert end "$total_lines" linenumber
$w_file insert end "$line"
}
$w_load conf -state disabled
$w_cgrp conf -state disabled