mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-09 05:16:57 +03:00
8826ad5ddd
Previously, we would accept edits containing out-of-order ranges. When generating such ranges in our randomized tests, many invariants started breaking causing e.g. undo/redo to misbehave and operation application to panic. In theory, we should never pass inverted ranges, but this commit changes the above functions to swap the start and the end when that occurs to avoid breaking the entire system and panicking. |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |