3a969493f7b944036810f6fe1398bdc6bf10913b
`cs"` and `ds"` did nothing when the line was soft wrapped and the quotes ended up on different display rows. Quote objects only match on a single line, and the surround code checked that by comparing display rows of the cursor and the found pair, so a soft wrapped line looked like several. The pair itself is found in the buffer text and was already correct. Compare buffer rows instead, in both `ds` and `cs`. This also covers `AnyQuotes` and `MiniQuotes`, which go through the same check. Closes #43069
Description
My contributions to zed-industries/zed: 11 commits, 1 merged PRs
1.6 MiB
0 Stars
1 Watchers
0 Forks
Languages
Rust
100%