@matheusbsbs / matheus-bagliano / commits / 375e1365a6
Fork 0

git-gui: Make the line number column slightly wider in blame

Most source code files are under 9,999 lines of text, so using a field width of 5 characters meant that we should have had one char padding on the left edge (because we right-justify the line number). Unfortunately when I added the right margin earlier (when I removed the padding) I ate into the extra character's space, losing the left margin. This put the line numbers too close to the commit column in any file with more than 999 lines in it. Signed-off-by: Shawn O. Pearce <spearce@spearce.org>

Shawn O. Pearce committed Jun 2, 2007 at 14:35 UTC 375e1365a62df3cd944ec0e91051b94d710a7c6d
1 file changed +1 -1
lib/blame.tcl
+1 -1
@@ -122,7 +122,7 @@ constructor new {i_commit i_path} {
122 -state disabled \
123 -wrap none \
124 -height 40 \
125 - -width 5 \
125 + -width 6 \
126 -font font_diff
127 $w_line tag conf linenumber -justify right -rmargin 5
128