Skip to content

Commit 7d6ab9c

Browse files
committed
Fix unused return value of cl-delete-duplicates
Capture the return value of cl-delete-duplicates back into the items variable, since the function may return a new list head.
1 parent e8e07db commit 7d6ab9c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lisp/cider-repl-history.el

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -612,10 +612,10 @@ HISTORY-BUF is the history, and optional arg REGEXP is a filter."
612612
;; display highest or lowest duplicate.
613613
;; if `cider-repl-history-display-duplicate-highest' is t,
614614
;; display highest (most recent) duplicate.
615-
(cl-delete-duplicates
616-
items
617-
:test #'equal
618-
:from-end cider-repl-history-display-duplicate-highest))
615+
(setq items (cl-delete-duplicates
616+
items
617+
:test #'equal
618+
:from-end cider-repl-history-display-duplicate-highest)))
619619
(when (stringp regexp)
620620
(setq items (delq nil
621621
(mapcar

0 commit comments

Comments
 (0)