Fix iswitchb highlighting: don't mutate buffer name

* lisp/obsolete/iswitchb.el (iswitchb-completions): Copy buffer name
  before applying face
This commit is contained in:
Daniel Colascione 2018-02-08 18:46:57 -08:00
parent 6b183f85e0
commit 05e8b4392b

View file

@ -1247,7 +1247,7 @@ Modified from `icomplete-completions'."
(if (and iswitchb-use-faces comps)
(progn
(setq first (car comps))
(setq first (copy-sequence (car comps)))
(setq first (format "%s" first))
(put-text-property 0 (length first) 'face
(if (= (length comps) 1)