Hi,
I think there might be a little bug in the BookmarkAtCP method
I use code like this to determine if im inside at bookmark
But when CP is after the last char in the bookmark (or inside an emty bookmark) method BookmarkAtCP returns nil.
WPTools[V5.18.9]