fix #39421: fix selection detection of break plugin

similar to earlier fixes for colornotes (606b401) and notenames
(df6e8a0)