summaryrefslogtreecommitdiff
path: root/helm-buffers.el
diff options
context:
space:
mode:
authorThierry Volpiatto <thierry.volpiatto@gmail.com>2017-04-07 07:07:07 +0200
committerThierry Volpiatto <thierry.volpiatto@gmail.com>2017-04-07 07:15:30 +0200
commitd91121face0166b982ef554ed3e8dc9b2cc976fb (patch)
treed8059178e49db4483647e54b9ed75d500093ee10 /helm-buffers.el
parente6c79f0093cfba99510a24583cb9b0e7e2730fe4 (diff)
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.
Diffstat (limited to 'helm-buffers.el')
-rw-r--r--helm-buffers.el9
1 files changed, 6 insertions, 3 deletions
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)