branch: externals/mct commit f30dddf1eb61696c9efe215201059cd5652650dd Author: Protesilaos Stavrou <i...@protesilaos.com> Commit: Protesilaos Stavrou <i...@protesilaos.com>
Make sure the completions-format stays local --- mct.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mct.el b/mct.el index 72623bb..5c419f9 100644 --- a/mct.el +++ b/mct.el @@ -302,7 +302,9 @@ Meant to be added to `after-change-functions'." (buffer-local-value 'mct--active buf))) (defun mct--display-completion-list-advice (&rest app) - (let ((completions-format mct-completions-format)) + (if (mct--active-p) + (let ((completions-format mct-completions-format)) + (apply app)) (apply app))) (defun mct--completing-read-advice (&rest app)