fix part of git error

This commit is contained in:
Miranda Marquez 2024-04-07 15:40:14 -08:00
parent 71bf2d1cca
commit 5d0f344d59

15
p11k.el
View File

@ -242,12 +242,15 @@ Use 'window-width' to calculate the total final width."
it) nil))) it) nil)))
(branch (--> "git branch" (branch (--> "git branch"
(shell-command-to-string it) (shell-command-to-string it)
(split-string it "\n" 'omit-nulls search-whitespace-regexp) (split-string it)
(if it (progn (cadr it)
(--filter (string-match-p (rx bol "* " (+ word)) it) it) ;; (split-string it "\n" 'omit-nulls search-whitespace-regexp)
(split-string (car it)) ;; (if it (progn
(cadr it)) ;; (--filter (string-match-p (rx bol "* " (+ word)) it) it)
""))) ;; (split-string (car it))
;; (cadr it))
;; "")
))
(modcount (--> status-alist (modcount (--> status-alist
(--map (car it) it) (--map (car it) it)
(--count (string-match-p "M" it) it) (--count (string-match-p "M" it) it)