From 25c476791edb93b56eba3a3f9a5b1cf395811f37 Mon Sep 17 00:00:00 2001 From: Eli <42063718+Elilif@users.noreply.github.com> Date: Sun, 4 Dec 2022 01:50:01 +0800 Subject: [PATCH] (fix): update `org-roam-unlinked-references-section` check (#2254) `org-roam-unlinked-references-section` would get nil org-roam-node-title when create a headline node, which caused the issue #1625. This commit add a check to make `org-roam-unlinked-references-section` work correctly. --- org-roam-mode.el | 1 + 1 file changed, 1 insertion(+) diff --git a/org-roam-mode.el b/org-roam-mode.el index 65ab0c9..d23bc79 100644 --- a/org-roam-mode.el +++ b/org-roam-mode.el @@ -653,6 +653,7 @@ This is the ROW within FILE." "The unlinked references section for NODE. References from FILE are excluded." (when (and (executable-find "rg") + (org-roam-node-title node) (not (string-match "PCRE2 is not available" (shell-command-to-string "rg --pcre2-version")))) (let* ((titles (cons (org-roam-node-title node)