From d91121face0166b982ef554ed3e8dc9b2cc976fb Mon Sep 17 00:00:00 2001 From: Thierry Volpiatto Date: Fri, 7 Apr 2017 07:07:07 +0200 Subject: Fix highlighting in buffers. * helm-buffers.el (helm-source-buffers): Disable highlighting matches. (helm-highlight-buffers): Enable highlighting matches here. * helm-help.el (helm-buffer-help-message): Update fuzzy matching section. --- helm-buffers.el | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'helm-buffers.el') diff --git a/helm-buffers.el b/helm-buffers.el index 0a39cdae..35e2cd7f 100644 --- a/helm-buffers.el +++ b/helm-buffers.el @@ -223,6 +223,7 @@ Only buffer names are fuzzy matched when this is enabled, (keymap :initform helm-buffer-map) (migemo :initform 'nomultimatch) (volatile :initform t) + (nohighlight :initform t) (resume :initform (lambda () (setq helm-buffers-in-project-p nil))) (help-message :initform 'helm-buffer-help-message))) @@ -394,9 +395,11 @@ Should be called after others transformers i.e (boring buffers)." ;; units, this is 7 characters. for formatted-size = (and size (format "%7s" size)) collect (cons (if helm-buffer-details-flag - (concat truncbuf "\t" formatted-size - " " fmode " " meta) - name) + (concat + (funcall helm-fuzzy-matching-highlight-fn truncbuf) + "\t" formatted-size + " " fmode " " meta) + (funcall helm-fuzzy-matching-highlight-fn name)) (get-buffer i)))) (defun helm-buffer--get-preselection (buffer) -- cgit v1.2.3