Skip to content
This repository has been archived by the owner on Jun 25, 2024. It is now read-only.

Commit

Permalink
Add explicit binding to nil in let
Browse files Browse the repository at this point in the history
* which-key.el (which-key--match-replacement,
which-key--propertize-key): Add explicit binding of case-fold-search to nil.
  • Loading branch information
jeremy-bryant authored and justbur committed Apr 10, 2024
1 parent 672689a commit c606abd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions which-key.el
Original file line number Diff line number Diff line change
Expand Up @@ -1551,7 +1551,7 @@ Within these categories order using `which-key-key-order'."
(when (and (consp key-binding) (not (symbolp (car replacement))))
(let ((key-regexp (caar replacement))
(binding-regexp (cdar replacement))
case-fold-search)
(case-fold-search nil))
(and (or (null key-regexp)
(string-match-p key-regexp
(car key-binding)))
Expand Down Expand Up @@ -1684,7 +1684,7 @@ If KEY contains any \"special keys\" defined in
(mapconcat #'identity which-key-special-keys
"\\|")
"\\)"))
case-fold-search)
(case-fold-search nil))
(save-match-data
(if (and which-key-special-keys
(string-match regexp key))
Expand Down

0 comments on commit c606abd

Please sign in to comment.