summaryrefslogtreecommitdiff
path: root/helm-grep.el
diff options
context:
space:
mode:
authorThierry Volpiatto <thierry.volpiatto@gmail.com>2015-02-13 09:20:00 +0100
committerThierry Volpiatto <thierry.volpiatto@gmail.com>2015-02-13 09:20:00 +0100
commit6e99fcc4ac3fcf739585f2bf4027d127508885ae (patch)
treea7e4420da88739688bf4a782eb8761a9f5a24e7c /helm-grep.el
parent58a89886f5e139974587851f930fb509b8ec1645 (diff)
Fix wrong regexp for ansi (#865).
* helm-grep.el (helm-grep--filter-candidate-1): Use ansi-color-regexp.
Diffstat (limited to 'helm-grep.el')
-rw-r--r--helm-grep.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/helm-grep.el b/helm-grep.el
index 7054c59c..16a3321e 100644
--- a/helm-grep.el
+++ b/helm-grep.el
@@ -950,7 +950,7 @@ in recurse, search being made on `helm-zgrep-file-extension-regexp'."
(defun helm-grep--filter-candidate-1 (candidate &optional dir)
(let* ((root (or dir (and helm-grep-default-directory-fn
(funcall helm-grep-default-directory-fn))))
- (ansi-p (string-match-p ansi-color-parameter-regexp candidate))
+ (ansi-p (string-match-p ansi-color-regexp candidate))
(split (helm-grep-split-line (if ansi-p
(ansi-color-apply candidate)
candidate)))