summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/blame.tcl7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/blame.tcl b/lib/blame.tcl
index 5561702683..0666dcadc1 100644
--- a/lib/blame.tcl
+++ b/lib/blame.tcl
@@ -422,12 +422,19 @@ method _read_file {fd} {
$w_line insert end "$total_lines" linenumber
$w_file insert end "$line"
}
+
+ set ln_wc [expr {[string length $total_lines] + 2}]
+ if {[$w_line cget -width] < $ln_wc} {
+ $w_line conf -width $ln_wc
+ }
+
$w_cgrp conf -state disabled
$w_line conf -state disabled
$w_file conf -state disabled
if {[eof $fd]} {
close $fd
+
_status $this
set cmd {nice git blame -M -C --incremental}
if {$commit eq {}} {