From: Ilya Bobyr Date: Thu, 20 Mar 2014 08:58:51 +0000 (-0700) Subject: gitk: Replace SHA1 entry field on keyboard paste X-Git-Tag: v2.1.0-rc0~74^2~3 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/ada2ea1695c4200dd9deaef2034cc453c27729f7 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 --- 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}