Don't unbind keys when passed a label to :prefix

Fixes an issue where

  (map! :leader
        :prefix ("f" . "asdasdas")
        ...)

Would unbind SPC f before adding your new keybinds.
This commit is contained in:
Henrik Lissner 2019-01-03 02:26:11 -05:00
parent fec0cb6b32
commit a4cd5fafd8
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -250,7 +250,7 @@ For example, :nvi will map to (list 'normal 'visual 'insert). See
((setq def (cons 'list ((setq def (cons 'list
(if (and (equal key "") (if (and (equal key "")
(null def)) (null def))
`(nil :which-key ,desc) `(:ignore t :which-key ,desc)
(plist-put (general--normalize-extended-def def) (plist-put (general--normalize-extended-def def)
:which-key desc)))))))) :which-key desc))))))))
(dolist (state states) (dolist (state states)