That code appends:
linenumber = 1
g_godmode = 1
in diff_easy.cfg.
That happened with g_godmode already in the file so as to be removed.
If you think it would help, I could zip up a directory, source, and executable so you can see what it's doing first-hand. This has me so confused.