selectrum: remove side effect in irc jump function

`+irc/selectrum-jump-to-channel` previously modified
`+irc--consult-circe-source` in the definition, since `plist-put`, and I
quote from the manual:
"[] may modify plist destructively, or [] may construct a new list
structure without altering the old."
This commit is contained in:
Itai Y. Efrat 2021-06-18 23:29:30 +03:00
parent f315a60ccc
commit 5a44c1f880

View file

@ -6,7 +6,7 @@
"Jump to an open channel or server buffer with selectrum." "Jump to an open channel or server buffer with selectrum."
(interactive) (interactive)
(require 'consult) (require 'consult)
(consult--multi (list (plist-put +irc--consult-circe-source (consult--multi (list (plist-put (copy-sequence +irc--consult-circe-source)
:hidden nil)) :hidden nil))
:narrow nil :narrow nil
:require-match t :require-match t