summaryrefslogtreecommitdiff
path: root/org-roam-ui.el
diff options
context:
space:
mode:
authorKirill Rogovoy <[email protected]>2021-07-22 20:36:35 +0300
committerKirill Rogovoy <[email protected]>2021-07-22 20:36:35 +0300
commite558154272df5c35ac443c32d8a300d5814c4717 (patch)
tree1ed48a46748c64722d7b166d1adb6ce11c45592e /org-roam-ui.el
parent60801f2fdaf9a94ceec8a365937c6d8ac8a4f802 (diff)
Fix org-roam-id-at-point throwing errors time to time
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