git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH (GIT-GUI) 1/2] git-gui: Fix the Remote menu separator.

From
Alexander Gavrilov <angavrilov@gmail.com>
Date
Jul 27, 2008, 06:34 UTC
Message-ID
<200807271034.21833.angavrilov@gmail.com>

It was positioned incorrectly (offset by one position) if the menu had a tear-off handle.

Signed-off-by: Alexander Gavrilov <angavrilov@gmail.com>
---
	A couple of random fixes.
	-- Alexander
 git-gui.sh |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/git-gui.sh b/git-gui.sh
index 9d0627d..da903a1 100755
--- a/git-gui.sh
+++ b/git-gui.sh
@@ -2926,6 +2926,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
-- 
1.5.6.3.18.gfe82
Next: Alexander Gavrilov
Message 1 of 2 in “git-gui: Fix the Remote menu separator.”
  1. 1/2 git-gui: Fix the Remote menu separator.Alexander Gavrilov, Jul 27, 2008
  2. 2/2 git-gui: Preserve scroll position on reshow_diff.Alexander Gavrilov, Jul 27, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.