Skip to content

Commit

Permalink
Revert "Fix the calculation of glues"
Browse files Browse the repository at this point in the history
This reverts commit 0ed857a.
  • Loading branch information
papaeye committed Dec 5, 2015
1 parent 0ed857a commit e928ca8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion navbar.el
Original file line number Diff line number Diff line change
Expand Up @@ -294,8 +294,11 @@ Disabled items are ignored."
(insert (apply #'concat strings)))
(save-window-excursion
(set-window-buffer window (current-buffer))
;; Default X-LIMIT seems to return (1- max-width)
;; if the fringe width is 0 and the text width is
;; larger than max-width.
(car (window-text-pixel-size window nil nil
max-width))))))
(1+ max-width)))))))
(if (>= line-width max-width)
strings
(let* ((space (- max-width line-width))
Expand Down

0 comments on commit e928ca8

Please sign in to comment.