Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Gavrilov <angavrilov@gmail.com>2008-07-27 10:34:21 +0400
committerShawn O. Pearce <spearce@spearce.org>2008-07-27 19:08:09 +0400
commit7e09b1531faa260226e0d4f7c850660b7ccb2f04 (patch)
treebd6705e6e8de1f89a564472ed23c010925f50070
parentc7f7457026dc2f6979842f81cc17098579fec8d8 (diff)
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>
-rwxr-xr-xgit-gui.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/git-gui.sh b/git-gui.sh
index 7c27a43a5d..ce941adf8d 100755
--- a/git-gui.sh
+++ b/git-gui.sh
@@ -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