Still get the freeze/crash word when there's "^p^p" at the end of the document.
I'm looking for a workaround to this, also get sometimes "Code execution aborted" message without error.
Maybe instead of search active document use selection.wholestory and move the selection to exclude the last character of the document.
Or add a code to remove the last char of the document when it's "^p^p" before run the rest of the code.
__________________
Backup your original file before doing any modification.
|