Make completion insertion always count as a single undo action, closes #468