Skip to content

Commit

Permalink
Revert "* which-key.el (which-key--partition-list): Replace cl-subseq…
Browse files Browse the repository at this point in the history
… by take"

This reverts commit 94a29cd.
  • Loading branch information
justbur committed Apr 23, 2024
1 parent e21ee10 commit ba323d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion which-key.el
Expand Up @@ -2016,7 +2016,7 @@ that width."
"Partition LIST into N-sized sublists."
(let (res)
(while list
(setq res (cons (take (min n (length list)) list) res)
(setq res (cons (cl-subseq list 0 (min n (length list))) res)
list (nthcdr n list)))
(nreverse res)))

Expand Down

0 comments on commit ba323d6

Please sign in to comment.