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

git-gui: scroll down to default selection for push dialog

If the list of remote/local branches is very long its inconvenient to scroll down and find the selected branch. This patch makes the widget automatically scroll down so its shown on the top. Signed-off-by: Heiko Voigt <hvoigt@hvoigt.net> Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net>

Heiko Voigt committed Feb 6, 2011 at 18:04 UTC fb027e148a1e256e12ecfcfac090f4f06f8d4c58
1 file changed +1
lib/transport.tcl
+1
@@ -123,6 +123,7 @@ proc do_push_anywhere {} {
123 $w.source.l insert end $h
124 if {$h eq $current_branch} {
125 $w.source.l select set end
126 + $w.source.l yview end
127 }
128 }
129 pack $w.source.l -side left -fill both -expand 1