Skip to content

Commit

Permalink
Fix mapconcat
Browse files Browse the repository at this point in the history
  • Loading branch information
jcs090218 committed Nov 26, 2023
1 parent 75fec95 commit 0415b1a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ic.el
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,10 @@ Arguments FUNC and SEQ are for function `mapconcat'."
(len (1- (length seq))))
(dolist (elm seq)
(setq next-str (funcall func elm)
next-sep (if (string-suffix-p "\n" next-str) "" " ")
result (concat result next-str (if (= count len) "" next-sep)))
next-sep (if (or (= count len)
(string-suffix-p "\n" next-str))
"" " ")
result (concat result next-str next-sep))
(cl-incf count))
result))

Expand Down

0 comments on commit 0415b1a

Please sign in to comment.