mirror of
https://github.com/org-roam/org-roam
synced 2025-08-27 14:23:32 -05:00
(fix)org-roam-node-visit: pass correctly optional force
parameter (#1821)
This function ignored the `force' optional argument because it always quoted it, resulting in a non-nil value every time. This makes the suggested code snippet in https://github.com/org-roam/org-roam/issues/597#issuecomment-907743125 work as expected (not resetting point to the beginning of the "Index" buffer on every invocation).
This commit is contained in:
@@ -393,7 +393,7 @@ If NODE is already visited, this won't automatically move the
|
||||
point to the beginning of the NODE, unless FORCE is non-nil. In
|
||||
interactive calls FORCE always set to t."
|
||||
(interactive (list (org-roam-node-at-point t) current-prefix-arg t))
|
||||
(let ((buf (org-roam-node-find-noselect node 'force))
|
||||
(let ((buf (org-roam-node-find-noselect node force))
|
||||
(display-buffer-fn (if other-window
|
||||
#'switch-to-buffer-other-window
|
||||
#'pop-to-buffer-same-window)))
|
||||
|
Reference in New Issue
Block a user