mirror of
https://github.com/protesilaos/denote.git
synced 2026-09-10 07:16:20 -04:00
Remove faulty 'or' from denote--dir-in-denote-directory-p
Thanks to Jean-Philippe Gagné Guay for pointing out the problem with it in a comment to issue 705: <https://github.com/protesilaos/denote/issues/705#issuecomment-4436808008>.
This commit is contained in:
parent
3f5ede71d4
commit
dbfe4b189a
|
|
@ -3107,8 +3107,7 @@ TEMPLATE, and SIGNATURE should be valid for note creation."
|
|||
"Return non-nil if DIRECTORY is in variable `denote-directory'."
|
||||
(seq-some
|
||||
(lambda (d)
|
||||
(or (string-prefix-p d (file-name-as-directory (expand-file-name directory)))
|
||||
(string-prefix-p (file-name-as-directory (expand-file-name directory)) d)))
|
||||
(string-prefix-p d (file-name-as-directory (expand-file-name directory))))
|
||||
(denote-directories)))
|
||||
|
||||
(defun denote--valid-file-type (filetype)
|
||||
|
|
|
|||
Loading…
Reference in a new issue