mirror of
https://github.com/org-roam/org-roam
synced 2025-08-29 14:33:29 -05:00
(bugfi): check for buffer file in post-command-hook (#128)
If you delete a org-roam buffer it can still trigger an update. Need to make sure that their exists a file for the buffer before we proceed
This commit is contained in:
@@ -538,7 +538,8 @@ This needs to be quick/infrequent, because this is run at
|
||||
(let ((buffer (window-buffer)))
|
||||
(when (and (or redisplay
|
||||
(not (eq org-roam--current-buffer buffer)))
|
||||
(eq 'visible (org-roam--current-visibility)))
|
||||
(eq 'visible (org-roam--current-visibility))
|
||||
(buffer-local-value 'buffer-file-truename buffer))
|
||||
(setq org-roam--current-buffer buffer)
|
||||
(org-roam-update (expand-file-name
|
||||
(buffer-local-value 'buffer-file-truename buffer))))))
|
||||
|
Reference in New Issue
Block a user