Skip to content

Commit a41ddbb

Browse files
marcowspaulusmack
authored andcommitted
gitk: Allow diff view without context lines
Signed-off-by: Markus Heidelberg <[email protected]> Signed-off-by: Paul Mackerras <[email protected]>
1 parent e0a0199 commit a41ddbb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gitk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2146,7 +2146,7 @@ proc makewindow {} {
21462146
label .bleft.mid.labeldiffcontext -text " [mc "Lines of context"]: "
21472147
pack .bleft.mid.diff .bleft.mid.old .bleft.mid.new -side left
21482148
spinbox .bleft.mid.diffcontext -width 5 -font textfont \
2149-
-from 1 -increment 1 -to 10000000 \
2149+
-from 0 -increment 1 -to 10000000 \
21502150
-validate all -validatecommand "diffcontextvalidate %P" \
21512151
-textvariable diffcontextstring
21522152
.bleft.mid.diffcontext set $diffcontext
@@ -7308,7 +7308,7 @@ proc diffcontextchange {n1 n2 op} {
73087308
global diffcontextstring diffcontext
73097309

73107310
if {[string is integer -strict $diffcontextstring]} {
7311-
if {$diffcontextstring > 0} {
7311+
if {$diffcontextstring >= 0} {
73127312
set diffcontext $diffcontextstring
73137313
reselectline
73147314
}

0 commit comments

Comments
 (0)