Skip to content

Commit 7e09b15

Browse files
angavrilovspearce
authored andcommitted
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>
1 parent c7f7457 commit 7e09b15

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

git-gui.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2925,6 +2925,7 @@ if {[is_enabled transport]} {
29252925
populate_fetch_menu
29262926
set n [expr {[.mbar.remote index end] - $n}]
29272927
if {$n > 0} {
2928+
if {[.mbar.remote type 0] eq "tearoff"} { incr n }
29282929
.mbar.remote insert $n separator
29292930
}
29302931
unset n

0 commit comments

Comments
 (0)