fix histedit -e bug where reverting all changes causes histedit -c cycles