I ran into something similar before. One thing that's worth checking is whether the file encoding or line endings are different than expected, since that can cause some odd behavior. If everything else looks right, trying with a clean config or portable version can also help narrow down whether it's a settings issue.
-- <https://forum.pspad.com/read.php?4,74774,79772> PSPad freeware editor https://www.pspad.com
