Permalink
Browse files

fix patch 75: p.Max -> position

  • Loading branch information...
1 parent 1c56b7d commit dcf4c6111e6c70ad729efebe7349164be2a75b62 @knieriem committed Jul 20, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 template.go
View
@@ -158,7 +158,7 @@ func (p *{{def "Peg"}}) Init() {
}
{{ end}}
p.ResetBuffer = func(s string) (old string) {
- if p.Max < len(p.Buffer) {
+ if position < len(p.Buffer) {
old = p.Buffer[position:]
}
p.Buffer = s

0 comments on commit dcf4c61

Please sign in to comment.