Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lint
Browse files Browse the repository at this point in the history
matt2e committed Oct 2, 2024
1 parent 7173f33 commit 1f317d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/lsp/lsp.go
Original file line number Diff line number Diff line change
@@ -145,7 +145,7 @@ func publishPositionalErrors(errByFilename map[string]errSet, s *Server) {

// If the end column is not set, set it to the length of the word.
if pp.EndColumn <= pp.StartColumn {
length, err := getLineOrWordLength(filename, int(pp.Line), int(pp.StartColumn), false)
length, err := getLineOrWordLength(filename, pp.Line, pp.StartColumn, false)
if err != nil {
s.logger.Errorf(err, "Failed to get line or word length")
continue

0 comments on commit 1f317d1

Please sign in to comment.