Fix evil-collection-describe-bindings

Sort a copy of the stored bindings, because sort can modify the underlying
object.
This commit is contained in:
Justin Burkett 2018-06-13 08:13:34 -04:00 committed by James N
parent df269baf95
commit 1afea31ac6
1 changed files with 2 additions and 1 deletions

View File

@ -295,7 +295,8 @@ modes in the current buffer."
")
(cl-loop
for (state key def) in
(sort (gethash keymap evil-collection--bindings-record)
(sort (copy-sequence
(gethash keymap evil-collection--bindings-record))
#'evil-collection--binding-lessp)
do
(when (and def (not (eq def 'ignore)))