Fix spacing with +modeline-file-percentage

This commit is contained in:
Case Duckworth 2022-02-01 15:29:39 -06:00
parent 27616fa08a
commit 3c89c1ee06
1 changed files with 3 additions and 3 deletions

View File

@ -193,9 +193,9 @@ The order of elements matters: whichever one matches first is applied."
(defun +modeline-file-percentage (&optional spacer)
"Display the position in the current file."
`(,(or spacer +modeline-default-spacer)
(:propertize (file-percentage-mode
(" " (-3 "%p") "%%")))))
(if file-percentage-mode
(list (or spacer +modeline-default-spacer) '(-3 "%p") "%%")
'(" ")))
(define-minor-mode region-indicator-mode
"Toggle the region indicator in the mode line."