Browse Source

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>
maint
Alexander Gavrilov 17 years ago committed by Shawn O. Pearce
parent
commit
7e09b1531f
  1. 1
      git-gui.sh

1
git-gui.sh

@ -2925,6 +2925,7 @@ if {[is_enabled transport]} { @@ -2925,6 +2925,7 @@ if {[is_enabled transport]} {
populate_fetch_menu
set n [expr {[.mbar.remote index end] - $n}]
if {$n > 0} {
if {[.mbar.remote type 0] eq "tearoff"} { incr n }
.mbar.remote insert $n separator
}
unset n

Loading…
Cancel
Save