summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Mackerras <paulus@samba.org>2008-10-16 09:57:02 +1100
committerPaul Mackerras <paulus@samba.org>2008-10-16 09:57:02 +1100
commit968ce45c9d2765b527d895b6933d20c0d104387c (patch)
tree32a3af146e03628398e8659bd5fa40aeea8731b5
parent39ee47ef0616fb67ffdffca98283272c36deecc9 (diff)
downloadgit-968ce45c9d2765b527d895b6933d20c0d104387c.tar.gz
gitk: Fix binding for <Return> in sha1 entry field
This adds a break so that gitk doesn't go and execute the global binding for <Return> (i.e. find next) when the user presses the return key in the sha1 entry field to indicate that gitk should jump to the commit identified by what they just put into the sha1 field. Signed-off-by: Paul Mackerras <paulus@samba.org>
-rwxr-xr-xgitk2
1 files changed, 1 insertions, 1 deletions
diff --git a/gitk b/gitk
index ccfe1917cb..00ea8da735 100755
--- a/gitk
+++ b/gitk
@@ -2161,7 +2161,7 @@ proc makewindow {} {
bind . <Destroy> {stop_backends}
bind . <Button-1> "click %W"
bind $fstring <Key-Return> {dofind 1 1}
- bind $sha1entry <Key-Return> gotocommit
+ bind $sha1entry <Key-Return> {gotocommit; break}
bind $sha1entry <<PasteSelection>> clearsha1
bind $cflist <1> {sel_flist %W %x %y; break}
bind $cflist <B1-Motion> {sel_flist %W %x %y; break}