diff options
author | Heiko Voigt <hvoigt@hvoigt.net> | 2011-02-06 18:04:27 +0100 |
---|---|---|
committer | Pat Thoyts <patthoyts@users.sourceforge.net> | 2011-02-06 22:20:05 +0000 |
commit | fb027e148a1e256e12ecfcfac090f4f06f8d4c58 (patch) | |
tree | 4d9b179f97a45e1c24aafe8ce0580f05820cf2d0 | |
parent | 9e34e62bcbef12d290ecc0854df9117009873a3f (diff) | |
download | git-fb027e148a1e256e12ecfcfac090f4f06f8d4c58.tar.gz git-fb027e148a1e256e12ecfcfac090f4f06f8d4c58.tar.xz |
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>
-rw-r--r-- | lib/transport.tcl | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/transport.tcl b/lib/transport.tcl index 321f595d6..306705885 100644 --- a/lib/transport.tcl +++ b/lib/transport.tcl @@ -123,6 +123,7 @@ proc do_push_anywhere {} { $w.source.l insert end $h if {$h eq $current_branch} { $w.source.l select set end + $w.source.l yview end } } pack $w.source.l -side left -fill both -expand 1 |