I have the same problem, 506 and 507 versions have it. Was working fine before. But i remember having this problem few years ago too. (viz https://gyazo.com/e2967d4b9d4f22091a8bffbe82a807d7 ) It appears to be always the ending curly bracket }
-- <https://forum.pspad.com/read.php?2,75192,75377> PSPad freeware editor https://www.pspad.com