branch: elpa/parseedn
commit fd3f88d67b9757d5d06bd88b374a2f15d66337fe
Author: tmpUser2022 <98637343+tmpuser2...@users.noreply.github.com>
Commit: GitHub <nore...@github.com>

    Allow empty coll with `parseedn-print-seq`
    
    Allow empty coll with `parseedn-print-seq`
---
 parseedn.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/parseedn.el b/parseedn.el
index 87a4213055..1e06e54218 100644
--- a/parseedn.el
+++ b/parseedn.el
@@ -156,7 +156,8 @@ TAG-READERS is an optional association list.  For more 
information, see
 
 (defun parseedn-print-seq (coll)
   "Insert sequence COLL as EDN into the current buffer."
-  (parseedn-print (elt coll 0))
+  (unless (seq-empty-p coll)
+    (parseedn-print (elt coll 0)))
   (let ((next (seq-drop coll 1)))
     (when (not (seq-empty-p next))
       (insert " ")

Reply via email to