From 4b622628a2701b5cf80235f0d8fd6785d8d342ba Mon Sep 17 00:00:00 2001 From: Alois Janíček Date: Sun, 19 Sep 2021 10:49:03 +0200 Subject: fix: make follow-mode work with indirect buffers Same as in `org-roam-buffer-p`, call `buffer-file-name` with `buffer-base-buffer` which ensures that file name is determined under all circumstances. --- org-roam-ui.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'org-roam-ui.el') diff --git a/org-roam-ui.el b/org-roam-ui.el index 45849b7..f52d126 100644 --- a/org-roam-ui.el +++ b/org-roam-ui.el @@ -356,7 +356,7 @@ unchanged." (defun org-roam-ui--update-current-node () "Send the current node data to the web-socket." - (when (and (websocket-openp oru-ws) (org-roam-buffer-p) (buffer-file-name)) + (when (and (websocket-openp oru-ws) (org-roam-buffer-p) (buffer-file-name (buffer-base-buffer))) (let* ((node (org-roam-id-at-point))) (unless (string= org-roam-ui--ws-current-node node) (setq org-roam-ui--ws-current-node node) -- cgit v1.2.3