DORMANTno replies

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

From: Heiko Voigt <hidden>
Date: 2016-06-15 22:50:30
Subsystem: the rest · Maintainer: Linus Torvalds

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 <redacted>
---
Note: Please also apply with 'git am -p2'

 git-gui/lib/transport.tcl |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/git-gui/lib/transport.tcl b/git-gui/lib/transport.tcl
index e4e1add..6478efa 100644
--- a/git-gui/lib/transport.tcl
+++ b/git-gui/lib/transport.tcl
@@ -211,6 +211,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
-- 
1.7.4.34.gd2cb1
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help