summaryrefslogtreecommitdiff
path: root/helm-multi-match.el
diff options
context:
space:
mode:
authorThierry Volpiatto <thierry.volpiatto@gmail.com>2015-09-23 12:31:05 +0200
committerThierry Volpiatto <thierry.volpiatto@gmail.com>2015-09-23 12:31:05 +0200
commitd89e59adad9e274afd942b833e8edcc35e63983b (patch)
tree33bafc0dbc759ae249323fa8d3d3b16ebefd4691 /helm-multi-match.el
parent4327c03c9101da2e32e9d75aca492dd638e9edb9 (diff)
Fix higlighting in migemo (#1175).
* helm-multi-match.el (helm-mm-migemo-string-match): Push the whole regexp to cache and reuse it. * helm.el (helm-fuzzy-default-highlight-match): Use re-search-forward.
Diffstat (limited to 'helm-multi-match.el')
-rw-r--r--helm-multi-match.el6
1 files changed, 3 insertions, 3 deletions
diff --git a/helm-multi-match.el b/helm-multi-match.el
index 488f7c04..aa8b1ceb 100644
--- a/helm-multi-match.el
+++ b/helm-multi-match.el
@@ -275,10 +275,10 @@ i.e the sources which have the slot :migemo with non--nil value."
(defun helm-mm-migemo-string-match (pattern str)
"Migemo version of `string-match'."
(unless (assoc pattern helm-mm--previous-migemo-info)
- (push (cons pattern (migemo-get-pattern pattern))
+ (push (cons pattern (concat (migemo-get-pattern pattern)
+ "\\|" pattern))
helm-mm--previous-migemo-info))
- (string-match (concat (assoc-default pattern helm-mm--previous-migemo-info)
- "\\|" pattern) str))
+ (string-match (assoc-default pattern helm-mm--previous-migemo-info) str))
(cl-defun helm-mm-3-migemo-match (str &optional (pattern helm-pattern))
(and helm-migemo-mode