vim: Ensure surrounding markers contain cursor for Helix surround operations (#47163)

Closes #47155, introduced by #44317

I naively trusted `crates/vim/src/object.rs:1624`'s
`surrounding_markers` to check whether the cursor is actually
surrounded, but it has nearest match fallback behavior, apparently by
design as indicated by `test_anyquotes_object` in the same file.

Release Notes:

- Fixed Helix surround operations falling back to closest match if
cursor not surrounded

Co-authored-by: Jakub Konka <kubkon@jakubkonka.com>
74456c8b49Leon Qadirie committed on 4/23/2026, 6:45:26 PM· committed by GitHubparentfca4d60
1 file changedLine totals unavailable