From ada2ea1695c4200dd9deaef2034cc453c27729f7 Mon Sep 17 00:00:00 2001 From: Ilya Bobyr Date: Thu, 20 Mar 2014 01:58:51 -0700 Subject: [PATCH] gitk: Replace SHA1 entry field on keyboard paste We already replace old SHA with the clipboard content for the mouse paste event. It seems reasonable to do the same when pasting from keyboard. Signed-off-by: Ilya Bobyr Signed-off-by: Paul Mackerras --- gitk | 1 + 1 file changed, 1 insertion(+) diff --git a/gitk b/gitk index 90764e8948..2f58bcfbdd 100755 --- a/gitk +++ b/gitk @@ -2585,6 +2585,7 @@ proc makewindow {} { bind $fstring {dofind 1 1} bind $sha1entry {gotocommit; break} bind $sha1entry <> clearsha1 + bind $sha1entry <> clearsha1 bind $cflist <1> {sel_flist %W %x %y; break} bind $cflist {sel_flist %W %x %y; break} bind $cflist {treeclick %W %x %y} -- 2.11.4.GIT