Skip to content

Commit adf57f3

Browse files
committed
Fix printing of hash-maps with multiple entries
1 parent 342359a commit adf57f3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

parseedn.el

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,16 +141,16 @@ TAG-READERS is an optional association list. For more information, see
141141
(insert " ")
142142
(parseedn-print-seq next))))
143143

144-
(defun parseedn-print-kvs (map)
144+
(defun parseedn-print-kvs (map &optional ks)
145145
"Insert hash table MAP as an EDN map into the current buffer."
146-
(let ((keys (a-keys map)))
146+
(let ((keys (or ks (a-keys map))))
147147
(parseedn-print (car keys))
148148
(insert " ")
149149
(parseedn-print (a-get map (car keys)))
150150
(let ((next (cdr keys)))
151151
(when (not (seq-empty-p next))
152152
(insert ", ")
153-
(parseedn-print-kvs next)))))
153+
(parseedn-print-kvs map next)))))
154154

155155
(defun parseedn-print (datum)
156156
"Insert DATUM as EDN into the current buffer.

0 commit comments

Comments
 (0)