Fix for issue #140 (Ctrl-Z in editor)

Undo buffer was filled inconsistently with forward changes.

The actual fix is adding one line: "undoBlock->DelText". The rest was on renaming one-letter variables, and adding comments while trying to understanding how it works.