Fix possibility of infinite loop in selections_with_autoclose_regions (#3138)

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

Something must have changed recently that allowed this invariant to be
violated, but regardless, this code should not have relied on that
invariant to terminate like this.
199740902aMax Brunsfeld committed on 10/18/2023, 6:34:35 PM· committed by GitHubparents4e68b58655c9ec
1 file changedLine totals unavailable