I am trying to write a script that would join (merge) selected notes that are adjacent or overlapping. (As discussed in the thread
REQ: Join only adjacent/overlapping notes.)
While testing the script on overlapping notes, I came across this curious phenomenon: