right-alignment is slightly less janky now yaaaaay!!!
This commit is contained in:
parent
caef820683
commit
e92d04557b
8
p11k.el
8
p11k.el
@ -233,7 +233,13 @@ Use 'window-width' to calculate the total final width."
|
||||
(left-length (length left-str))
|
||||
(right-length (length right-str))
|
||||
(middle-spc (- (window-width nil 'remap) (+ left-length right-length))))
|
||||
(concat left-str (make-string middle-spc (string-to-char " ")) right-str)))
|
||||
(concat left-str
|
||||
;; (make-string middle-spc (string-to-char " "))
|
||||
(propertize " "
|
||||
'display
|
||||
`(space :align-to ,(- (window-width nil 'remap) right-length)))
|
||||
right-str
|
||||
)))
|
||||
;; (eval `(concat ,@'("one" "two")))
|
||||
;; (p11k/justificate '("one" "wto" "three") '("twenty" "23" "forthy-three"))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user