Fix to cmdedit.c from Vladimir