Fix word completions clobbering the text after the cursor (#32010)

Release Notes:

- N/A
5ae8c4cf09Michael Sloan committed on 6/3/2025, 7:37:26 PM· committed by GitHubparentd8195a8
1 file changedLine totals unavailable