Skip to content

Commit d6ccd0c

Browse files
committed
fix: #742 lsp-mode progress status not formatted correctly
Display percent in misc-info segment
1 parent 84a53e0 commit d6ccd0c

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

doom-modeline-segments.el

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1608,11 +1608,10 @@ mouse-2: Show help for minor mode"
16081608
(doom-modeline-def-segment misc-info
16091609
"Mode line construct for miscellaneous information.
16101610
By default, this shows the information specified by `global-mode-string'."
1611-
(when (and (doom-modeline--segment-visible 'misc-info)
1612-
(or doom-modeline-display-misc-in-all-mode-lines
1613-
(doom-modeline--active)))
1611+
(when (or doom-modeline-display-misc-in-all-mode-lines
1612+
(doom-modeline--segment-visible 'misc-info))
16141613
(doom-modeline-display-text
1615-
(format-mode-line mode-line-misc-info))))
1614+
(string-replace "%" "%%" (format-mode-line mode-line-misc-info)))))
16161615

16171616

16181617
;;

0 commit comments

Comments
 (0)