summaryrefslogtreecommitdiff
path: root/org-roam-ui.el
diff options
context:
space:
mode:
Diffstat (limited to 'org-roam-ui.el')
-rw-r--r--org-roam-ui.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/org-roam-ui.el b/org-roam-ui.el
index 9420bf3..9988899 100644
--- a/org-roam-ui.el
+++ b/org-roam-ui.el
@@ -124,8 +124,9 @@ ROWS is the sql result, while COLUMN-NAMES is the columns to use."
"Track changes within Emacs to update Org-roam UI.
This function is added to `post-command-hook'."
(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