Skip to content

Commit fe813d4

Browse files
committed
Merge branch 'maint'
* maint: git-gui: Bind Tab/Shift-Tab to cycle between panes in blame git-gui: Correctly install to /usr/bin on Cygwin
2 parents 573fe6d + fb626dc commit fe813d4

2 files changed

Lines changed: 12 additions & 2 deletions

File tree

Makefile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ GIT-VERSION-FILE: .FORCE-GIT-VERSION-FILE
77
@$(SHELL_PATH) ./GIT-VERSION-GEN
88
-include GIT-VERSION-FILE
99

10+
uname_O := $(shell sh -c 'uname -o 2>/dev/null || echo not')
11+
1012
SCRIPT_SH = git-gui.sh
1113
GITGUI_BUILT_INS = git-citool
1214
ALL_PROGRAMS = $(GITGUI_BUILT_INS) $(patsubst %.sh,%,$(SCRIPT_SH))
@@ -82,8 +84,12 @@ exedir_SQ = $(subst ','\'',$(exedir))
8284

8385
$(patsubst %.sh,%,$(SCRIPT_SH)) : % : %.sh
8486
$(QUIET_GEN)rm -f $@ $@+ && \
87+
GITGUI_RELATIVE= && \
8588
if test '$(exedir_SQ)' = '$(libdir_SQ)'; then \
86-
GITGUI_RELATIVE=1; \
89+
if test "$(uname_O)" = Cygwin; \
90+
then GITGUI_RELATIVE= ; \
91+
else GITGUI_RELATIVE=1; \
92+
fi; \
8793
fi && \
8894
sed -e '1s|#!.*/sh|#!$(SHELL_PATH_SQ)|' \
8995
-e 's|^exec wish "$$0"|exec $(subst |,'\|',$(TCLTK_PATH_SQ)) "$$0"|' \

lib/blame.tcl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,8 @@ constructor new {i_commit i_path} {
272272
set cursorW %W
273273
tk_popup $w.ctxm %X %Y
274274
"
275+
bind $i <Shift-Tab> "[list focus $w_cviewer];break"
276+
bind $i <Tab> "[list focus $w_cviewer];break"
275277
}
276278

277279
foreach i [concat $w_columns $w_cviewer] {
@@ -287,8 +289,10 @@ constructor new {i_commit i_path} {
287289
bind $i <Control-Key-f> {catch {%W yview scroll 1 pages};break}
288290
}
289291

292+
bind $w_cviewer <Shift-Tab> "[list focus $w_file];break"
293+
bind $w_cviewer <Tab> "[list focus $w_file];break"
290294
bind $w_cviewer <Button-1> [list focus $w_cviewer]
291-
bind $top <Visibility> [list focus $top]
295+
bind $w_file <Visibility> [list focus $w_file]
292296

293297
grid configure $w.header -sticky ew
294298
grid configure $w.file_pane -sticky nsew

0 commit comments

Comments
 (0)