Skip to content

Commit

Permalink
Improve whitespace around mode line spinner
Browse files Browse the repository at this point in the history
  • Loading branch information
Wilfred committed Oct 27, 2024
1 parent 8d92139 commit bb4b129
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions deadgrep.el
Original file line number Diff line number Diff line change
Expand Up @@ -1626,10 +1626,13 @@ deadgrep is ready but not yet searching."
(key-description restart-key))))))

(defun deadgrep--mode-line ()
(let ((s (if deadgrep--result-count
(format "Deadgrep:%s" deadgrep--result-count)
"Deadgrep")))
(concat s (spinner-print deadgrep--spinner))))
(let* ((s (if deadgrep--result-count
(format "Deadgrep:%s" deadgrep--result-count)
"Deadgrep"))
(spinner-str (spinner-print deadgrep--spinner)))
(if spinner-str
(concat s " " spinner-str)
s)))

(defun deadgrep--create-imenu-index ()
"Create `imenu' index for matched files."
Expand Down

0 comments on commit bb4b129

Please sign in to comment.