Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bug that zk--id-list does not return list if there is only one file in zk-directory. #82

Merged
merged 3 commits into from
Dec 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions zk.el
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
;; Author: Grant Rosson <https://github.com/localauthor>
;; Created: January 4, 2022
;; License: GPL-3.0-or-later
;; Version: 0.7
;; Version: 0.8
;; URL: https://github.com/localauthor/zk
;; Package-Requires: ((emacs "25.1"))
;; Package-Requires: ((emacs "28.1"))

;; This program is free software; you can redistribute it and/or modify it
;; under the terms of the GNU General Public License as published by the Free
Expand Down Expand Up @@ -366,7 +366,7 @@ an internal loop."
(push (car item) ids))
(push (car item) ids)))
ids)
(zk--parse-file 'id (zk--directory-files t))))
(ensure-list (zk--parse-file 'id (zk--directory-files t)))))

(defun zk-id-p (id)
"Return t if ID is already in use as a zk-id."
Expand Down
Loading