From: Markus Heidelberg Date: Sat, 23 May 2009 17:31:37 +0000 (+0200) Subject: gitk: Allow diff view without context lines X-Git-Tag: v1.6.4-rc0~53^2 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a41ddbb649c72214a4861827eedc7b2eebe0608f;p=git.git gitk: Allow diff view without context lines Signed-off-by: Markus Heidelberg Signed-off-by: Paul Mackerras --- diff --git a/gitk b/gitk index 72b0b0df7..4604c831f 100755 --- a/gitk +++ b/gitk @@ -2146,7 +2146,7 @@ proc makewindow {} { label .bleft.mid.labeldiffcontext -text " [mc "Lines of context"]: " pack .bleft.mid.diff .bleft.mid.old .bleft.mid.new -side left spinbox .bleft.mid.diffcontext -width 5 -font textfont \ - -from 1 -increment 1 -to 10000000 \ + -from 0 -increment 1 -to 10000000 \ -validate all -validatecommand "diffcontextvalidate %P" \ -textvariable diffcontextstring .bleft.mid.diffcontext set $diffcontext @@ -7308,7 +7308,7 @@ proc diffcontextchange {n1 n2 op} { global diffcontextstring diffcontext if {[string is integer -strict $diffcontextstring]} { - if {$diffcontextstring > 0} { + if {$diffcontextstring >= 0} { set diffcontext $diffcontextstring reselectline }