Skip to content

Commit

Permalink
Unifying pcase separator block to single case.
Browse files Browse the repository at this point in the history
  • Loading branch information
chaosemer committed Nov 25, 2023
1 parent 9aa0bc7 commit 2c93eff
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions window-tool-bar.el
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,9 @@ This is for when you want more customizations than
MENU-ITEM: Menu item to convert. See info node (elisp)Tool Bar."
(pcase menu-item
;; Separators
(`(,_ "--")
"|")
(`(,_ menu-item ,(and (pred stringp)
(pred (string-prefix-p "--"))))
((or `(,_ "--")
`(,_ menu-item ,(and (pred stringp)
(pred (string-prefix-p "--")))))
"|")

;; Main workhorse
Expand Down

0 comments on commit 2c93eff

Please sign in to comment.