summaryrefslogtreecommitdiff
path: root/org-roam-ui.el
diff options
context:
space:
mode:
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 0afa362..85f9e97 100644
--- a/org-roam-ui.el
+++ b/org-roam-ui.el
@@ -175,9 +175,9 @@ This serves the web-build and API over HTTP."
(command (alist-get 'command msg))
(data (alist-get 'data msg)))
(cond ((string= command "open")
- (org-roam-node-visit
- (org-roam-populate (org-roam-node-create
- :id (alist-get 'id data)))))
+ (org-roam-node-visit
+ (org-roam-populate (org-roam-node-create
+ :id (alist-get 'id data))) (not (org-roam-buffer-p))))
((string= command "delete")
(progn
(message "Deleted %s" (alist-get 'file data))