@matheusbsbs / matheus-bagliano / commits / a41ddbb649
Fork 0

gitk: Allow diff view without context lines

Signed-off-by: Markus Heidelberg <markus.heidelberg@web.de> Signed-off-by: Paul Mackerras <paulus@samba.org>

Markus Heidelberg committed May 23, 2009 at 19:31 UTC a41ddbb649c72214a4861827eedc7b2eebe0608f
1 file changed +2 -2
gitk
+2 -2
@@ -2146,7 +2146,7 @@ proc makewindow {} {
2146 label .bleft.mid.labeldiffcontext -text " [mc "Lines of context"]: "
2147 pack .bleft.mid.diff .bleft.mid.old .bleft.mid.new -side left
2148 spinbox .bleft.mid.diffcontext -width 5 -font textfont \
2149 - -from 1 -increment 1 -to 10000000 \
2149 + -from 0 -increment 1 -to 10000000 \
2150 -validate all -validatecommand "diffcontextvalidate %P" \
2151 -textvariable diffcontextstring
2152 .bleft.mid.diffcontext set $diffcontext
@@ -7308,7 +7308,7 @@ proc diffcontextchange {n1 n2 op} {
7308 global diffcontextstring diffcontext
7309
7310 if {[string is integer -strict $diffcontextstring]} {
7311 - if {$diffcontextstring > 0} {
7311 + if {$diffcontextstring >= 0} {
7312 set diffcontext $diffcontextstring
7313 reselectline
7314 }