From 120ea892a001db97c9ee83272e0c666e9825637a Mon Sep 17 00:00:00 2001 From: Stefan Haller Date: Sun, 14 Nov 2010 13:21:50 +0100 Subject: [PATCH] gitk: Prevent the text pane from becoming editable When setting the "Patch/Tree" radio buttons to "Tree" and clicking on a file to display it, the text pane would accidentally become editable (because of the early return in getblobline). Signed-off-by: Stefan Haller Signed-off-by: Paul Mackerras --- gitk | 1 + 1 file changed, 1 insertion(+) diff --git a/gitk b/gitk index c5aa844ef..8f6590076 100755 --- a/gitk +++ b/gitk @@ -7327,6 +7327,7 @@ proc getblobline {bf id} { [lindex [split $commentend .] 0]}] mark_ctext_line $lnum } + $ctext config -state disabled return 0 } $ctext config -state disabled -- 2.26.2