gitk: Indent word-wrapped lines in commit display header
authorPaul Mackerras <paulus@samba.org>
Thu, 23 Jan 2014 11:06:22 +0000 (22:06 +1100)
committerPaul Mackerras <paulus@samba.org>
Thu, 23 Jan 2014 11:06:22 +0000 (22:06 +1100)
In the cases where the lines starting with Precedes:, Follows: and
Branches: in the commit display are long enough to be word-wrapped,
this adds a 1cm margin on the left of the wrapped lines, to make
the display more readable. Suggested by Stephen Rothwell.

Signed-off-by: Paul Mackerras <paulus@samba.org>
gitk
diff --git a/gitk b/gitk
index 94ea5ff91287d24e82d4e34b6358729f9b437fa0..90764e8948f1f95aaddfb381664ecede328bc863 100755 (executable)
--- a/gitk
+++ b/gitk
@@ -2429,7 +2429,7 @@ proc makewindow {} {
     $ctext tag conf msep -font textfontbold
     $ctext tag conf found -back $foundbgcolor
     $ctext tag conf currentsearchhit -back $currentsearchhitbgcolor
-    $ctext tag conf wwrap -wrap word
+    $ctext tag conf wwrap -wrap word -lmargin2 1c
     $ctext tag conf bold -font textfontbold
 
     .pwbottom add .bleft