* [PATCH] gitk: allow diff view without context lines
@ 2009-05-23 17:31 Markus Heidelberg
2009-05-24 23:50 ` Paul Mackerras
0 siblings, 1 reply; 2+ messages in thread
From: Markus Heidelberg @ 2009-05-23 17:31 UTC (permalink / raw)
To: Paul Mackerras; +Cc: git, Markus Heidelberg
Signed-off-by: Markus Heidelberg <markus.heidelberg@web.de>
---
gitk | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/gitk b/gitk
index 1855390..322a442 100755
--- a/gitk
+++ b/gitk
@@ -2145,7 +2145,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
@@ -7306,7 +7306,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
}
--
1.6.3.1.160.g45b30
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] gitk: allow diff view without context lines
2009-05-23 17:31 [PATCH] gitk: allow diff view without context lines Markus Heidelberg
@ 2009-05-24 23:50 ` Paul Mackerras
0 siblings, 0 replies; 2+ messages in thread
From: Paul Mackerras @ 2009-05-24 23:50 UTC (permalink / raw)
To: Markus Heidelberg; +Cc: git
Thanks, applied.
Paul.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-05-24 23:50 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-23 17:31 [PATCH] gitk: allow diff view without context lines Markus Heidelberg
2009-05-24 23:50 ` Paul Mackerras
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).