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 63d5509 commit d60c9da
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 d60c9da

Please sign in to comment.