branch: elpa/helm commit e17ad364b9ddc7b283b21df94b3ba2fa8bdc11e3 Author: Thierry Volpiatto <thie...@posteo.net> Commit: Thierry Volpiatto <thie...@posteo.net>
Fix helm-grep-hack-types for ack v3.3.1 --- helm-grep.el | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/helm-grep.el b/helm-grep.el index 999e197fbd..6fa38df518 100644 --- a/helm-grep.el +++ b/helm-grep.el @@ -1037,14 +1037,13 @@ Special commands: ;; `helm-grep-use-ack-p'. (call-process (helm-grep-command t) nil t nil "--help-types") (goto-char (point-min)) - (cl-loop while (re-search-forward - "^ *--\\(\\[no\\]\\)\\([^. ]+\\) *\\(.*\\)" nil t) - collect (cons (concat (match-string 2) - " [" (match-string 3) "]") - (match-string 2)) - collect (cons (concat "no" (match-string 2) - " [" (match-string 3) "]") - (concat "no" (match-string 2)))))) + (cl-loop while (re-search-forward "^ +\\([^. ]+\\) +\\(.*\\)" nil t) + collect (cons (concat (match-string 1) + " [" (match-string 2) "]") + (match-string 1)) + collect (cons (concat "no" (match-string 1) + " [" (match-string 2) "]") + (concat "no" (match-string 1)))))) (defun helm-grep-ack-types-transformer (candidates _source) (cl-loop for i in candidates