mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
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:
@ -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)
|
||||||
|
Reference in New Issue
Block a user