diff options
author | Thomas F. K. Jorna <[email protected]> | 2021-07-22 19:50:27 +0200 |
---|---|---|
committer | Thomas F. K. Jorna <[email protected]> | 2021-07-22 19:50:27 +0200 |
commit | 0ba686b64fcdbedffd636791e6d20d8eb1791693 (patch) | |
tree | 7ab8236d5099390bfcbd7dadc06756442345dcd1 /org-roam-ui.el | |
parent | baf30cbfe147a936d36d25f61fd2d1088dbd7418 (diff) |
more merging
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 |