mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
The previous code seems to have an off-by-1 in it somewhere, the consequence being that we didn't properly preserve all of the old buffer contents that we intended to. After spending a while looking at the existing window-shifting logic, I wasn't able to understand exactly how it was supposed to work or where the issue was, so I rewrote it to be (at least IMO) more obviously correct. Fixes #21938. Change-Id: I1ed7bbc1e1751a52ab5f7cf0411ae289586dc345 Reviewed-on: https://go-review.googlesource.com/64830 Run-TryBot: Matthew Dempsky <mdempsky@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Robert Griesemer <gri@golang.org> Reviewed-on: https://go-review.googlesource.com/70977 Run-TryBot: Russ Cox <rsc@golang.org> Reviewed-by: Matthew Dempsky <mdempsky@google.com> |
||
|---|---|---|
| .. | ||
| branches.go | ||
| dumper.go | ||
| dumper_test.go | ||
| nodes.go | ||
| nodes_test.go | ||
| parser.go | ||
| parser_test.go | ||
| printer.go | ||
| printer_test.go | ||
| scanner.go | ||
| scanner_test.go | ||
| source.go | ||
| syntax.go | ||
| tokens.go | ||