Skip to content

Commit 54906ad

Browse files
committed
git-gui: Switch keybindings for [ and ] to bracketleft and bracketright
Thanks to Michele Ballabio for the quick fix. This resolves the error introduced by c91ee2b. Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
1 parent 3d654be commit 54906ad

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

git-gui.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2715,8 +2715,8 @@ bind $ui_comm <$M1B-Key-v> {tk_textPaste %W; %W see insert; break}
27152715
bind $ui_comm <$M1B-Key-V> {tk_textPaste %W; %W see insert; break}
27162716
bind $ui_comm <$M1B-Key-a> {%W tag add sel 0.0 end;break}
27172717
bind $ui_comm <$M1B-Key-A> {%W tag add sel 0.0 end;break}
2718-
bind $ui_comm <$M1B-Key-\[> {show_less_context;break}
2719-
bind $ui_comm <$M1B-Key-\]> {show_more_context;break}
2718+
bind $ui_comm <$M1B-Key-bracketleft> {show_less_context;break}
2719+
bind $ui_comm <$M1B-Key-bracketright> {show_more_context;break}
27202720
27212721
bind $ui_diff <$M1B-Key-x> {tk_textCopy %W;break}
27222722
bind $ui_diff <$M1B-Key-X> {tk_textCopy %W;break}
@@ -2760,8 +2760,8 @@ bind . <$M1B-Key-t> do_add_selection
27602760
bind . <$M1B-Key-T> do_add_selection
27612761
bind . <$M1B-Key-i> do_add_all
27622762
bind . <$M1B-Key-I> do_add_all
2763-
bind . <$M1B-Key-\[> {show_less_context;break}
2764-
bind . <$M1B-Key-\]> {show_more_context;break}
2763+
bind . <$M1B-Key-bracketleft> {show_less_context;break}
2764+
bind . <$M1B-Key-bracketright> {show_more_context;break}
27652765
bind . <$M1B-Key-Return> do_commit
27662766
foreach i [list $ui_index $ui_workdir] {
27672767
bind $i <Button-1> "toggle_or_diff $i %x %y; break"

0 commit comments

Comments
 (0)