branch: externals/mct commit 2ff39d66b83388c52a037beed665986d56dd7bc8 Author: Protesilaos Stavrou <i...@protesilaos.com> Commit: Protesilaos Stavrou <i...@protesilaos.com>
Fix mct--fit-completions-window arguments This allows it to be used as advise for minibuffer-completion-help. Thanks to Juri Linkov for noticing the problem and suggesting a solution: <https://gitlab.com/protesilaos/mct/-/issues/12#note_768901170>. --- mct.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mct.el b/mct.el index 9bfb5d2..603b7e2 100644 --- a/mct.el +++ b/mct.el @@ -231,7 +231,7 @@ See `completions-format' for possible values." (goto-char prev)))))) (put-text-property (point-min) (point) 'invisible t)))) -(defun mct--fit-completions-window () +(defun mct--fit-completions-window (&rest _args) "Fit Completions' buffer to its window." (when-let ((window (mct--get-completion-window))) (with-current-buffer (window-buffer window)