diff options
Diffstat (limited to 'org-roam-ui.el')
-rw-r--r-- | org-roam-ui.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/org-roam-ui.el b/org-roam-ui.el index 9420bf3..716016c 100644 --- a/org-roam-ui.el +++ b/org-roam-ui.el @@ -123,9 +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))) + org-roam-ui-current-node-id)))) (provide 'org-roam-ui) ;;; org-roam-ui.el ends here |