Skip to content

Commit f17db95

Browse files
committed
consult-completing-read-multiple: Update history accordingly
1 parent deec619 commit f17db95

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

consult.el

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2273,8 +2273,8 @@ See `completing-read-multiple' for the documentation of the arguments."
22732273
"" ;; default
22742274
inherit-input-method)))
22752275
(unless (or (equal result "") selected)
2276-
(setq selected (split-string result separator 'omit-nulls)
2277-
consult--crm-history (cons result hist-val)))))
2276+
(setq selected (split-string (substring-no-properties result) separator 'omit-nulls)
2277+
consult--crm-history (append selected hist-val)))))
22782278
(remove-hook 'pre-command-hook hook)))
22792279
(set hist-sym consult--crm-history)
22802280
(when (consp def)

0 commit comments

Comments
 (0)