Fix problems with c and C

When c is cancelled, the code doesn't enter insert mode, so the guard
never gets cleared.