Expected behavior
When selections are side by side, as in [text][selection][cursor][selection][cursor][text]
selections are properly displayed.
Example text:
hello hello world
Select by search: %s/hello <ret>
Actual behavior
When selections are side by side the extension can't find all the selections because of how the selection search logic handles what happens when there's a selection on both sides of a cursor.
Proposed solution
There are several ways to fix this:
hasSelection
to take selections like these into account.findSelectionAtomPositions
.