]> git.eshelyaron.com Git - emacs.git/commitdiff
Consider environment vars in Fido's directory-aware RET binding
authorJoão Távora <joaotavora@gmail.com>
Sat, 5 Jun 2021 20:46:59 +0000 (21:46 +0100)
committerJoão Távora <joaotavora@gmail.com>
Sat, 5 Jun 2021 20:47:57 +0000 (21:47 +0100)
Fixes: bug#48782
* lisp/icomplete.el (icomplete-fido-ret): Consider environment
variables in dir expansion.

lisp/icomplete.el

index 03a191cb0b63b8f321e9263fd5aa942e1f5d67fd..08b4ef2030a5fc86484f3dc3f90b12127720b6bd 100644 (file)
@@ -331,7 +331,8 @@ require user confirmation."
                    (file-name-directory (icomplete--field-string))))
          (current (car completion-all-sorted-completions))
          (probe (and dir current
-                     (expand-file-name (directory-file-name current) dir))))
+                     (expand-file-name (directory-file-name current)
+                                       (substitute-env-vars dir)))))
     (cond ((and probe (file-directory-p probe) (not (string= current "./")))
            (icomplete-force-complete))
           (t