Skip to content

Commit

Permalink
bugfix - skip filenames w/o extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
petermao committed Jul 9, 2023
1 parent f2d5188 commit 980a124
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion org-noter-core.el
Original file line number Diff line number Diff line change
Expand Up @@ -1757,7 +1757,8 @@ can still be initiated from the notes file, but not vice-versa,
nor will future renames of the document be synced in the notes
file."

(when (and (member-ignore-case (file-name-extension document-path)
(when (and (file-name-extension document-path)
(member-ignore-case (file-name-extension document-path)
org-noter--doc-extensions)
(not (file-exists-p document-path))
(file-exists-p new-document-path))
Expand Down

0 comments on commit 980a124

Please sign in to comment.