Skip to content

Commit

Permalink
Merge pull request #82 from cranej/main
Browse files Browse the repository at this point in the history
Fix bug that `zk--id-list` does not return list if there is only one file in zk-directory.
  • Loading branch information
localauthor authored Dec 5, 2024
2 parents 297ebd0 + b5d9240 commit 73f3b7d
Showing 1 changed file with 3 additions and 3 deletions.
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

0 comments on commit 73f3b7d

Please sign in to comment.