]> Cypherpunks repositories - gostls13.git/commit
cmd/cover: avoid repeating positions
authorIan Lance Taylor <iant@golang.org>
Fri, 7 Dec 2018 04:54:35 +0000 (20:54 -0800)
committerIan Lance Taylor <iant@golang.org>
Tue, 18 Dec 2018 20:57:18 +0000 (20:57 +0000)
commitd6899463029d8ab0d73c992ccf6639f095435b84
treee0ee3ec4fee09cf8d07d4a2be992c1b6bb7d959e
parent77caea5bf2c5103a81283d9fb5b7ca030b884af2
cmd/cover: avoid repeating positions

When using //line directives and unformatted code it is possible for
positions to repeat. Increment the final column position to avoid that.

Fixes #27350

Change-Id: I2faccc31360075e9814d4a024b0f98b117f8ce97
Reviewed-on: https://go-review.googlesource.com/c/153061
Run-TryBot: Rob Pike <r@golang.org>
Reviewed-by: Rob Pike <r@golang.org>
src/cmd/cover/cover.go
src/cmd/cover/cover_test.go