From 0ba686b64fcdbedffd636791e6d20d8eb1791693 Mon Sep 17 00:00:00 2001 From: "Thomas F. K. Jorna" Date: Thu, 22 Jul 2021 19:50:27 +0200 Subject: more merging --- org-roam-ui.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'org-roam-ui.el') 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 -- cgit v1.2.3