Merge pull request #1333 from flatwhatson/project-search-cwd

Fix wrong-number-of-args in project-search-from-cwd
This commit is contained in:
Henrik Lissner 2019-04-16 10:56:08 -04:00 committed by GitHub
commit 12161e1b67
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 6 deletions

View file

@ -192,7 +192,7 @@ the search."
directory)) directory))
;;;###autoload ;;;###autoload
(defun +helm/project-search-from-cwd (&optional arg initial-query directory) (defun +helm/project-search-from-cwd (&optional arg initial-query)
"Performs a project search recursively from the current directory. "Performs a project search recursively from the current directory.
Uses the first available search backend from `+helm-project-search-engines'. If Uses the first available search backend from `+helm-project-search-engines'. If
@ -201,8 +201,7 @@ ARG (universal argument), include all files, even hidden or compressed ones."
(funcall (or (+helm--get-command "+helm/%s-from-cwd") (funcall (or (+helm--get-command "+helm/%s-from-cwd")
#'+helm/grep-from-cwd) #'+helm/grep-from-cwd)
arg arg
initial-query initial-query))
directory))
;; Relative to project root ;; Relative to project root

View file

@ -364,7 +364,7 @@ the search."
directory)) directory))
;;;###autoload ;;;###autoload
(defun +ivy/project-search-from-cwd (&optional arg initial-query directory) (defun +ivy/project-search-from-cwd (&optional arg initial-query)
"Performs a project search recursively from the current directory. "Performs a project search recursively from the current directory.
Uses the first available search backend from `+ivy-project-search-engines'. If Uses the first available search backend from `+ivy-project-search-engines'. If
@ -373,8 +373,7 @@ ARG (universal argument), include all files, even hidden or compressed ones."
(funcall (or (+ivy--get-command "+ivy/%s-from-cwd") (funcall (or (+ivy--get-command "+ivy/%s-from-cwd")
#'+ivy/grep-from-cwd) #'+ivy/grep-from-cwd)
arg arg
initial-query initial-query))
directory))
;; Relative to project root ;; Relative to project root