when setting cur to a command, remove cur