mirror of
https://github.com/git/git.git
synced 2024-11-05 08:47:56 +01:00
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>
This commit is contained in:
parent
9e34e62bcb
commit
fb027e148a
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue