I'm leaving this because `afterExec` isn't triggered for pastes, but is triggered for changes in cursor position etc, in which scenarios we don't want to automatically open the `autocomplete` dialog.