~reykjalin/kakoune-mode#2: 
Handle multiple side-by-side selections

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:

  1. Change hasSelection to take selections like these into account.
  2. Explicitly handle this special case in findSelectionAtomPositions.
Status
REPORTED
Submitter
~reykjalin
Assigned to
No-one
Submitted
4 years ago
Updated
4 years ago
Labels
bug