Fix printing keys with pipe char in evil-collection-describe-all-bindings

This commit is contained in:
Justin Burkett 2018-06-05 22:06:51 -04:00 committed by James N
parent f9c38d26ea
commit 317e115a95
1 changed files with 4 additions and 2 deletions

View File

@ -240,8 +240,10 @@ Filter keys on the basis of `evil-collection-key-whitelist' and
(lambda (key def)
;; Don't print nil definitions
(when def
;; FIXME: Handle keys with | in them
(insert (format "| %s | %S |\n" (key-description key) def))))
(insert (format "| %s | %S |\n"
(replace-regexp-in-string
"|" "¦" (key-description key))
def))))
bindings)
(org-table-align))
evil-collection--bindings-record))))