Skip to content

Commit

Permalink
refactor: use split-string instead
Browse files Browse the repository at this point in the history
  • Loading branch information
eki3z committed Jan 18, 2025
1 parent 3be6eed commit f7d2ddc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mini-echo-segments.el
Original file line number Diff line number Diff line change
Expand Up @@ -594,15 +594,15 @@ with ellipsis."
('ibuffer-mode
(let ((sign (if (string-match-p "\\[rev]" str) "\u2193" "\u2191"))
(auto-p (if (string-match-p "Auto" str) "auto" ""))
(sort-item (cadr (string-split str "[ ]"))))
(sort-item (cadr (split-string str "[ ]"))))
(format "%s|%s|%s"
(propertize auto-p 'face 'mini-echo-gray-bold)
(propertize (if ibuffer-display-maybe-show-predicates "show" "hide")
'face 'mini-echo-green-bold)
(concat (propertize sort-item 'face 'mini-echo-blue-bold)
(propertize sign 'face 'mini-echo-yellow-bold)))))
((guard (derived-mode-p 'sh-base-mode)) nil)
('rg-mode (car (string-split str " ")))
('rg-mode (car (split-string str " ")))
(_ (mini-echo-segment--print str nil nil)))))

(mini-echo-define-segment "time"
Expand Down

0 comments on commit f7d2ddc

Please sign in to comment.