mirror of
https://github.com/correl/doom-modeline.git
synced 2024-11-23 19:19:50 +00:00
Align right segments after scaling font of the mode-line.
This commit is contained in:
parent
ce7c1006eb
commit
324ab847a2
1 changed files with 7 additions and 3 deletions
|
@ -391,9 +391,13 @@ If the actual char height is larger, it respects the actual char height.")
|
|||
" "
|
||||
'face (if (doom-modeline--active) 'mode-line 'mode-line-inactive)
|
||||
'display `((space :align-to (- (+ right right-fringe right-margin)
|
||||
,(string-width
|
||||
,(* (if (number-or-marker-p (face-attribute 'mode-line :height))
|
||||
(/ (window-font-width nil 'mode-line)
|
||||
(frame-char-width) 1.0)
|
||||
1)
|
||||
(string-width
|
||||
(format-mode-line
|
||||
(cons "" rhs-forms)))))))
|
||||
(cons "" rhs-forms))))))))
|
||||
rhs-forms))
|
||||
(concat "Modeline:\n"
|
||||
(format " %s\n %s"
|
||||
|
|
Loading…
Reference in a new issue