diff --git a/internal/lsp/fuzzy/matcher.go b/internal/lsp/fuzzy/matcher.go index 0fbe5b3146..f39f7ef65e 100644 --- a/internal/lsp/fuzzy/matcher.go +++ b/internal/lsp/fuzzy/matcher.go @@ -227,7 +227,7 @@ func (m *Matcher) computeScore(candidate string, candidateLower []byte) int { var skipPenalty int if i == 1 || (i-1) == lastSegStart { // Skipping the start of first or last segment. - skipPenalty += 1 + skipPenalty++ } for j := 0; j <= pattLen; j++ {