Fix possibility of infinite loop in selections_with_autoclose_regions

Previously, that method could loop forever if the editor's autoclose
regions had unexpected selection ids.

Co-authored-by: Piotr <piotr@zed.dev>
655c9ece2dMax Brunsfeld committed on 10/18/2023, 6:16:14 PMparent4e68b58
1 file changedLine totals unavailable