From f52c3a47d42bbeab251a3b43ba41ca44d2841e7e Mon Sep 17 00:00:00 2001 From: Jethro Kuan Date: Thu, 15 Apr 2021 03:13:35 +0800 Subject: [PATCH] fix highlights for completing-read #1467 --- org-roam.el | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/org-roam.el b/org-roam.el index 061356b..eb1fd6f 100644 --- a/org-roam.el +++ b/org-roam.el @@ -610,10 +610,11 @@ is the `org-roam-node'." :title title :point pos :tags (gethash id tags-table))) + (candidate-main (org-roam-node--format-entry node (1- (frame-width)))) (tag-str (org-roam--tags-to-str (org-roam-node-tags node)))) - (cons (propertize (concat tag-str " " alias) - 'node node - 'display (org-roam-node--format-entry node (1- (frame-width)))) + (cons (concat (propertize tag-str 'invisible t) + candidate-main + (propertize alias 'invisible t)) node))))) (defun org-roam-node-read (&optional initial-input filter-fn require-match)