Scroll completions menu to new selection on filter, fix corner case (#23478)

In the future if `filter` was used more this would fix other issues. In
the current code paths, this just fixes the particular corner case of
edit prediction arriving async while `y_flipped = true` (in this case it
needs to be scrolled down to show item with index 0).

Release Notes:

- N/A
09fe1e7f66Michael Sloan committed on 1/22/2025, 5:54:10 PM· committed by GitHubparent9f87145
1 file changedLine totals unavailable