Skip to content

Commit

Permalink
* which-key.el (which-key--partition-list): Replace cl-subseq by take
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremy-bryant authored and justbur committed Apr 9, 2024
1 parent aceafc8 commit 94a29cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion which-key.el
Original file line number Diff line number Diff line change
Expand Up @@ -2013,7 +2013,7 @@ that width."
"Partition LIST into N-sized sublists."
(let (res)
(while list
(setq res (cons (cl-subseq list 0 (min n (length list))) res)
(setq res (cons (take (min n (length list)) list) res)
list (nthcdr n list)))
(nreverse res)))

Expand Down

0 comments on commit 94a29cd

Please sign in to comment.