From d1dd75e3b2f934543630cc89b5c3288d97a0ea51 Mon Sep 17 00:00:00 2001 From: Jethro Kuan Date: Sat, 6 Mar 2021 18:19:50 +0800 Subject: [PATCH] simplify --- org-roam-db.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org-roam-db.el b/org-roam-db.el index 5144826..444ef9f 100644 --- a/org-roam-db.el +++ b/org-roam-db.el @@ -384,7 +384,7 @@ If UPDATE-P is non-nil, first remove the file in the database." source) (save-excursion (while (and (not (setq source (org-id-get))) - (not (= (point) (point-min)))) + (not (bobp))) (org-up-heading-or-point-min))) (when source (org-roam-db-query