Select Breaks After Running Script

hard to explain but hopefully i can:

Version 2.5.2 (1167)

  1. have some points selected (specifically including external overlaps points)
  2. run this script https://gist.github.com/weiweihuanghuang/f93dd18e1b51db58ade903905875fd63
  3. Select tool breaks, returns click error tone, and cant click out unless I go to text tab and select something else

It seems it could be because the points I selected before no longer exist?..

Video

It works fine for me.

Hmm I was unable to reproduce it just now either, I’ll look out for when it happens again…