@matheusbsbs / matheus-bagliano / commits / e87fb0f1b4
Fork 0

git-gui: Don't linewrap within console windows

If we get more than 80 characters of text in a single line odds are it is output from git-fetch or git-push and its showing a lot of detail off to the right edge that is not so important to the average user. We still want to make sure we show everything we need, but we can get away with that information being off to the side with a horizontal scrollbar. Signed-off-by: Shawn O. Pearce <spearce@spearce.org>

Shawn O. Pearce committed Jul 9, 2007 at 11:14 UTC e87fb0f1b4a4b458394a65d664145a9a8001e821
1 file changed +4
lib/console.tcl
+4
@@ -31,16 +31,20 @@ method _init {} {
31 -background white -borderwidth 1 \
32 -relief sunken \
33 -width 80 -height 10 \
34 + -wrap none \
35 -font font_diff \
36 -state disabled \
37 + -xscrollcommand [list $w.m.sbx set] \
38 -yscrollcommand [list $w.m.sby set]
39 label $w.m.s -text {Working... please wait...} \
40 -anchor w \
41 -justify left \
42 -font font_uibold
43 + scrollbar $w.m.sbx -command [list $w.m.t xview] -orient h
44 scrollbar $w.m.sby -command [list $w.m.t yview]
45 pack $w.m.l1 -side top -fill x
46 pack $w.m.s -side bottom -fill x
47 + pack $w.m.sbx -side bottom -fill x
48 pack $w.m.sby -side right -fill y
49 pack $w.m.t -side left -fill both -expand 1
50 pack $w.m -side top -fill both -expand 1 -padx 5 -pady 10