Skip to content

Commit

Permalink
fix shadowed error in types.go
Browse files Browse the repository at this point in the history
  • Loading branch information
leitzler committed Nov 6, 2019
1 parent e239dc6 commit 172319f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/govim/internal/types/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,8 @@ func VisualPointFromPosition(b *Buffer, pos protocol.Position) (Point, error) {
l := len(c)
if p.Offset() == l && l > 0 && c[l-1] == '\n' {
cc := b.tokenConvertor()
newLine, newCol, err := cc.ToPosition(l - 1)
var newLine, newCol int
newLine, newCol, err = cc.ToPosition(l - 1)
if err != nil {
return p, err
}
Expand Down

0 comments on commit 172319f

Please sign in to comment.