diff --git a/org-ql.el b/org-ql.el index 193592a..602cb19 100644 --- a/org-ql.el +++ b/org-ql.el @@ -367,6 +367,7 @@ returns nil or non-nil." ;; It feels unintuitive that `find-file-noselect' returns ;; a buffer if the filename doesn't exist. (find-file-noselect it)) + (get-buffer it) (user-error "Can't open file: %s" it))))) ;; Ignore special/hidden buffers. (--remove (string-prefix-p " " (buffer-name it)))))