diff --git a/modules/completion/helm/autoload/helm.el b/modules/completion/helm/autoload/helm.el index 401d1dd6e..0c1ec29b5 100644 --- a/modules/completion/helm/autoload/helm.el +++ b/modules/completion/helm/autoload/helm.el @@ -131,7 +131,7 @@ list of: ripgrep, ag, pt, git-grep and grep. If ARG (universal argument), preform search from current directory." (interactive "P") (call-interactively - (or (cl-loop for tool in (cl-remove-duplicates +helm-project-search-engines) + (or (cl-loop for tool in (cl-remove-duplicates +helm-project-search-engines :from-end t) if (executable-find (symbol-name tool)) return (intern (format "+helm/%s%s" tool (if arg "-from-cwd" "")))) (if arg diff --git a/modules/completion/ivy/autoload/ivy.el b/modules/completion/ivy/autoload/ivy.el index 094f8400c..51c715dfc 100644 --- a/modules/completion/ivy/autoload/ivy.el +++ b/modules/completion/ivy/autoload/ivy.el @@ -285,7 +285,7 @@ list of: ripgrep, ag, pt, git-grep and grep. If ARG (universal argument), preform search from current directory." (interactive "P") (call-interactively - (or (cl-loop for tool in (cl-remove-duplicates +ivy-project-search-engines) + (or (cl-loop for tool in (cl-remove-duplicates +ivy-project-search-engines :from-end t) if (executable-find (symbol-name tool)) return (intern (format "+ivy/%s%s" tool (if arg "-from-cwd" "")))) (if arg