Skip to content

Commit

Permalink
Merge pull request Malabarba#164 from lyro/master
Browse files Browse the repository at this point in the history
Consider minor mode separators in computation of fill string; Malabarba#163
  • Loading branch information
Malabarba committed Jan 11, 2016
2 parents ebc2cf9 + 0cb1352 commit f8417f0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion smart-mode-line.el
Original file line number Diff line number Diff line change
Expand Up @@ -1546,7 +1546,11 @@ duplicated buffer names) from being displayed."
(add-to-list 'nameList sml/propertized-shorten-mode-string t))

;; Padding
(setq filling (- size (length (format-mode-line nameList))))
(setq filling (- size (length (format-mode-line
(list ""
'sml/pre-minor-modes-separator
nameList
'sml/pos-minor-modes-separator)))))
(setq filling (make-string (max 0 filling) sml/fill-char))

(if (eq sml/mode-width 'right)
Expand Down

0 comments on commit f8417f0

Please sign in to comment.