edit: Fix history processing on running old command