mirror of
https://github.com/org-roam/org-roam
synced 2025-08-01 12:17:21 -05:00
fix org-roam--org-roam-file-p
fixes tests
This commit is contained in:
@ -194,7 +194,7 @@ Like `file-name-extension', but does not strip version number."
|
||||
"Return t if FILE is part of Org-roam system, nil otherwise.
|
||||
If FILE is not specified, use the current buffer's file-path."
|
||||
(when-let ((path (or file
|
||||
(buffer-base-buffer (buffer-file-name)))))
|
||||
(buffer-file-name (buffer-base-buffer)))))
|
||||
(save-match-data
|
||||
(and
|
||||
(org-roam--org-file-p path)
|
||||
|
Reference in New Issue
Block a user