diff options
Diffstat (limited to 'org-roam-ui.el')
-rw-r--r-- | org-roam-ui.el | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/org-roam-ui.el b/org-roam-ui.el index 716016c..9988899 100644 --- a/org-roam-ui.el +++ b/org-roam-ui.el @@ -123,10 +123,10 @@ ROWS is the sql result, while COLUMN-NAMES is the columns to use." (defun org-roam-ui-update () "Track changes within Emacs to update Org-roam UI. This function is added to `post-command-hook'." - (when (org-roam-buffer-p (current-buffer)) (setq org-roam-ui-current-node-id - (or (org-roam-id-at-point) - org-roam-ui-current-node-id)))) + (or + (condition-case nil (org-roam-id-at-point) (error nil)) + org-roam-ui-current-node-id))) (provide 'org-roam-ui) ;;; org-roam-ui.el ends here |