author | Shawn O. Pearce <spearce@spearce.org> | |
Sat, 2 Jun 2007 18:41:10 +0000 (14:41 -0400) | ||
committer | Shawn O. Pearce <spearce@spearce.org> | |
Wed, 6 Jun 2007 05:26:49 +0000 (01:26 -0400) | ||
commit | 81fb7efeda2ce14cbb44b91eed37aeeb2e541832 | |
tree | a89eaea27da5c9d26a4d04afaf15f22562da0fdd | tree | snapshot |
parent | 375e1365a62df3cd944ec0e91051b94d710a7c6d | commit | diff |
git-gui: Automatically expand the line number column as needed
After we finish reading a chunk of data from the file stream
we know how many digits we need in the line number column to
show the current maximum line number. If our line number column
isn't wide enough, we should expand it out to the correct width.
Any file over our default allowance of 5 digits (99,999 lines)
is so large that the slight UI "glitch" when we widen the column
out is trivial compared to the time it will take Git to fully do
the annotations.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
After we finish reading a chunk of data from the file stream
we know how many digits we need in the line number column to
show the current maximum line number. If our line number column
isn't wide enough, we should expand it out to the correct width.
Any file over our default allowance of 5 digits (99,999 lines)
is so large that the slight UI "glitch" when we widen the column
out is trivial compared to the time it will take Git to fully do
the annotations.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
lib/blame.tcl | diff | blob | history |