Fix panic in completions menu (#3778)

We were shifting all the positions while keeping the original string,
which caused problems later when combining highlighted ranges with
matched indices.

Release Notes:

- N/A
62aea418deAntonio Scandurra committed on 12/22/2023, 11:27:52 AM· committed by GitHubparentse3eafdba551647
1 file changedLine totals unavailable