Skip to content

Commit

Permalink
fix: Duplicate print
Browse files Browse the repository at this point in the history
  • Loading branch information
jcs090218 committed Dec 7, 2023
1 parent 0415b1a commit 7be4111
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions ic.el
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,10 @@ Arguments FNC and ARGS are for function `advice-add'."
(concat (pp object)
(ppp-plist-to-string (ht-to-plist object))))
(t
(let ((func (cond ((listp object) #'ppp-list-to-string)
(t #'pp))))
(ic-2str (funcall func object))))))
(let* ((func (cond ((listp object) #'ppp-list-to-string)
(t #'pp)))
(result (msgu-silent (apply func (list object)))))
(ic-2str result)))))

(defun ic--mapconcat (func seq)
"Like function `mapconcat', but compatible to newline separator.
Expand Down

0 comments on commit 7be4111

Please sign in to comment.