Skip to content

Commit

Permalink
Fix the calculation of glues
Browse files Browse the repository at this point in the history
  • Loading branch information
papaeye committed Dec 5, 2015
1 parent 8da6142 commit 0ed857a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions navbar.el
Original file line number Diff line number Diff line change
Expand Up @@ -294,11 +294,8 @@ 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
(1+ max-width)))))))
max-width))))))
(if (>= line-width max-width)
strings
(let* ((space (- max-width line-width))
Expand Down

0 comments on commit 0ed857a

Please sign in to comment.