From 8a4de19dfb52551a65c360a9346ede137d0fc6e8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jo=C3=A3o=20T=C3=A1vora?= Date: Sun, 10 Nov 2019 23:01:46 +0000 Subject: [PATCH] Fix bug when completing file names * lisp/minibuffer.el (completion--nth-completion): Fix bug when requote function is needed. --- lisp/minibuffer.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lisp/minibuffer.el b/lisp/minibuffer.el index 08b230d5752..fce705cd014 100644 --- a/lisp/minibuffer.el +++ b/lisp/minibuffer.el @@ -958,9 +958,9 @@ N can be 1 for to mean \"completion-try-completion\" or 2 to mean (_ n)) style string table pred point))) (completion--styles md)))) - (if requote - (funcall requote result n) - result))) + (when requote + (setcar result (funcall requote (car result) n))) + result)) (defun completion-try-completion (string table pred point &optional metadata) "Try to complete STRING using completion table TABLE. -- 2.39.5