diff options
author | Thomas F. K. Jorna <[email protected]> | 2022-02-25 22:51:36 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2022-02-25 22:51:36 +0100 |
commit | df1f9522c5a9cdb248208427fa9df4f2a7666e2a (patch) | |
tree | e3048293d328e8de3f553e928ff6f964b64913ef /org-roam-ui.el | |
parent | 309fe3c58c7081de4e2c9c64f7b40ea291926048 (diff) | |
parent | 2f30dfd451554b643255456a12e09e63def6ab19 (diff) |
Merge pull request #214 from p4v4n/fix-noselect-issue
Diffstat (limited to 'org-roam-ui.el')
-rw-r--r-- | org-roam-ui.el | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/org-roam-ui.el b/org-roam-ui.el index e1431ff..c56ca6f 100644 --- a/org-roam-ui.el +++ b/org-roam-ui.el @@ -229,10 +229,10 @@ Takes _WS and FRAME as arguments." (defun org-roam-ui--on-msg-open-node (data) "Open a node when receiving DATA from the websocket." - (let* ((node (org-roam-node-from-id (alist-get'id data))) - (pos (org-roam-node-point node)) - (buf (org-roam-node-find-noselect node)) - (id (alist-get 'id data))) + (let* ((id (alist-get 'id data)) + (node (org-roam-node-from-id id)) + (pos (org-roam-node-point node)) + (buf (find-file-noselect (org-roam-node-file node)))) (run-hook-with-args 'org-roam-ui-before-open-node-functions id) (unless (window-live-p org-roam-ui--window) (if-let ((windows (window-list)) |