(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.
This commit is contained in:
Eli
2022-12-04 01:50:01 +08:00
committed by GitHub
parent 78ee5c6814
commit 25c476791e

View File

@@ -653,6 +653,7 @@ This is the ROW within FILE."
"The unlinked references section for NODE. "The unlinked references section for NODE.
References from FILE are excluded." References from FILE are excluded."
(when (and (executable-find "rg") (when (and (executable-find "rg")
(org-roam-node-title node)
(not (string-match "PCRE2 is not available" (not (string-match "PCRE2 is not available"
(shell-command-to-string "rg --pcre2-version")))) (shell-command-to-string "rg --pcre2-version"))))
(let* ((titles (cons (org-roam-node-title node) (let* ((titles (cons (org-roam-node-title node)