Skip to content

Commit

Permalink
gitk: Allow diff view without context lines
Browse files Browse the repository at this point in the history
Signed-off-by: Markus Heidelberg <markus.heidelberg@web.de>
Signed-off-by: Paul Mackerras <paulus@samba.org>
  • Loading branch information
Markus Heidelberg authored and Paul Mackerras committed May 24, 2009
1 parent e0a0199 commit a41ddbb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gitk
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
}
Expand Down

0 comments on commit a41ddbb

Please sign in to comment.