(Emacs 31.1): I fixed a crash in in-buffer completion in which exit-minibuffer was being called outs

(Emacs 31.1): I fixed a crash in in-buffer completion in which exit-minibuffer was being called outside a minibufferIf TAB-completion in a regular buffer (not the minibuffer) throws exit, nil when you try to pick a candidate, some completion-at-point function you have loaded is calling exit-minibuffer even though there's no real minibuffer session active (AFAIK). Fix: advise exit-minibuffer to fall back to choose-completion whenever (not (minibufferp)).In case you are not experiencing this, these are my `system-configuration-options`: --with-pgtk --with-native-compilationThe solution I propose: (advice-add 'exit-minibuffer :around ( lambda (orig-fn &rest args) (if (not (minibufferp)) (call-interactively #'choose-completion) (apply orig-fn args))))If you guys know about alternatives, reach me out! EDIT: some formatting for neatness.https://redd.it/1w5oush@r_emacs