mirror of
https://github.com/org-roam/org-roam
synced 2025-08-01 12:17:21 -05:00
(fix)buffer: skip backlinks where file no longer exists
This is a fix to #1763, and an alternative to #1765. The rationale for not running a db-sync on buffer redisplay is that this is run on `post-command-hook` and needs to be fast.
This commit is contained in:
@ -345,6 +345,8 @@ the same time:
|
|||||||
from SOURCE-NODE's file for the link (that references the
|
from SOURCE-NODE's file for the link (that references the
|
||||||
other node) at POINT. Acts a child section of the previous
|
other node) at POINT. Acts a child section of the previous
|
||||||
one."
|
one."
|
||||||
|
(unless (file-exists-p (org-roam-node-file source-node))
|
||||||
|
(cl-return-from org-roam-node-insert-section))
|
||||||
(magit-insert-section section (org-roam-node-section)
|
(magit-insert-section section (org-roam-node-section)
|
||||||
(let ((outline (if-let ((outline (plist-get properties :outline)))
|
(let ((outline (if-let ((outline (plist-get properties :outline)))
|
||||||
(mapconcat #'org-link-display-format outline " > ")
|
(mapconcat #'org-link-display-format outline " > ")
|
||||||
|
Reference in New Issue
Block a user