summaryrefslogtreecommitdiff
path: root/helm.el
diff options
context:
space:
mode:
authorThierry Volpiatto <thierry.volpiatto@gmail.com>2017-03-28 15:50:06 +0200
committerThierry Volpiatto <thierry.volpiatto@gmail.com>2017-03-28 15:50:06 +0200
commit9a83715eb2a5df03ae42242fd6ec9e1d2b182dcc (patch)
tree98c7fcfd2924fba355b338a2f1be06f15a71de0f /helm.el
parent4475f9267bc9d663628d786207a4368e2d87d118 (diff)
Update helm-search-match-part docstring.
* helm.el (helm-search-match-part): Do it, no code change.
Diffstat (limited to 'helm.el')
-rw-r--r--helm.el10
1 files changed, 5 insertions, 5 deletions
diff --git a/helm.el b/helm.el
index 4626b0c7..405c4eee 100644
--- a/helm.el
+++ b/helm.el
@@ -4867,12 +4867,12 @@ use `search', `get-line' and `match-part' attributes."
and collect cand))))))
(defun helm-search-match-part (candidate pattern)
- "Match PATTERN only on part of CANDIDATE returned by MATCH-PART-FN.
+ "Match PATTERN only on match-part property value of CANDIDATE.
+
Because `helm-search-match-part' maybe called even if unspecified
-in source (negation), MATCH-PART-FN default to `identity'
-to match whole candidate.
-When using fuzzy matching and/or negation (i.e \"!\"),
-this function is always called on whole candidate."
+in source (negation or fuzzy), the part to match fallback to the whole
+candidate even if match-part haven't been computed by match-part-fn
+and stored in the match-part property."
(let ((part (or (get-text-property 0 'match-part candidate)
candidate))
(fuzzy-regexp (cadr (gethash 'helm-pattern helm--fuzzy-regexp-cache)))