summaryrefslogtreecommitdiff
path: root/org-roam-ui.el
diff options
context:
space:
mode:
authorThomas F. K. Jorna <[email protected]>2021-07-22 19:53:48 +0200
committerThomas F. K. Jorna <[email protected]>2021-07-22 19:53:48 +0200
commitccab511d1d0e928440a759b29a94b547207eb4ce (patch)
treee1e88d8c66759918c12e8c517b2aef38cc53cbc8 /org-roam-ui.el
parent0ba686b64fcdbedffd636791e6d20d8eb1791693 (diff)
parente558154272df5c35ac443c32d8a300d5814c4717 (diff)
resolving conflicts
Diffstat (limited to 'org-roam-ui.el')
-rw-r--r--org-roam-ui.el6
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