Make company-mode trigger completion only if the last command has been an editing command