summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Heidelberg <markus.heidelberg@web.de>2009-05-23 17:31:37 (GMT)
committerPaul Mackerras <paulus@samba.org>2009-05-24 23:46:31 (GMT)
commita41ddbb649c72214a4861827eedc7b2eebe0608f (patch)
treea406ba62cc7f7728d3a5d32384c057e57afaf035
parente0a0199581ea30abb58ba812047657b35f4ee639 (diff)
downloadgit-a41ddbb649c72214a4861827eedc7b2eebe0608f.zip
git-a41ddbb649c72214a4861827eedc7b2eebe0608f.tar.gz
git-a41ddbb649c72214a4861827eedc7b2eebe0608f.tar.bz2
gitk: Allow diff view without context lines
Signed-off-by: Markus Heidelberg <markus.heidelberg@web.de> Signed-off-by: Paul Mackerras <paulus@samba.org>
-rwxr-xr-xgitk4
1 files changed, 2 insertions, 2 deletions
diff --git a/gitk b/gitk
index 72b0b0d..4604c83 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
}