MadCompie:
--------------------------------------------------------------------------------
Hello,
You are right! I also tried this with a 7000 lines js file and indeed, very
fast!
I think the problem will be related to it's type: it's a COBOL file.
The COBOL syntax does not like everything after pos 72 ;)
Perhaps this causes the delay?
--------------------------------------------------------------------------------


It was caused by Cobol Code folding.
I can solve it by switching off Code folding before SelText in scripting and
return it back after. It will be immediate with Cobol files too.

I need to investigate if I can improve Cobol Code folding.

-- 
<https://forum.pspad.com/read.php?6,76202,76225>
PSPad freeware editor https://www.pspad.com

Odpovedet emailem