From def3d27d257f324fcda99ae9c4d063d37a907d62 Mon Sep 17 00:00:00 2001 From: Jethro Kuan Date: Sun, 22 Mar 2020 12:12:40 +0800 Subject: [PATCH] (internal): small refactor (#340) --- org-roam.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org-roam.el b/org-roam.el index ca65f35..51435a6 100644 --- a/org-roam.el +++ b/org-roam.el @@ -1009,7 +1009,7 @@ This is added as a hook to `org-capture-after-finalize-hook'." "Opens the newly created template file. This is added as a hook to `org-capture-after-finalize-hook'." (when-let ((file-path (org-roam--capture-get :file-path))) - (when (not org-note-abort) + (unless org-note-abort (find-file file-path))) (remove-hook 'org-capture-after-finalize-hook #'org-roam--capture-find-file-h))