Try remembering preceeding spaces on delete (not perfect yet)
GREEN: undo working well