@matheusbsbs / matheus-bagliano / commits / 7e09b1531f
Fork 0

git-gui: Fix the Remote menu separator.

It was positioned incorrectly (offset by one position) if the menu had a tear-off handle. Signed-off-by: Alexander Gavrilov <angavrilov@gmail.com> Signed-off-by: Shawn O. Pearce <spearce@spearce.org>

Alexander Gavrilov committed Jul 27, 2008 at 10:34 UTC 7e09b1531faa260226e0d4f7c850660b7ccb2f04
1 file changed +1
git-gui.sh
+1
@@ -2925,6 +2925,7 @@ if {[is_enabled transport]} {
2925 populate_fetch_menu
2926 set n [expr {[.mbar.remote index end] - $n}]
2927 if {$n > 0} {
2928 + if {[.mbar.remote type 0] eq "tearoff"} { incr n }
2929 .mbar.remote insert $n separator
2930 }
2931 unset n