Skip to content

Commit

Permalink
Merge pull request #43 from timhillgit/reenable-max-width
Browse files Browse the repository at this point in the history
Re-enable page-break-lines-max-width
  • Loading branch information
purcell authored Mar 11, 2024
2 parents 1b85352 + 2dd4af3 commit e33426a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions page-break-lines.el
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,9 @@ its display table will be modified as necessary."
(string-pixel-width (make-string 100 ?a)))
(char-width page-break-lines-char)))
(width (floor (window-max-chars-per-line) char-relative-width))
(width (if page-break-lines-max-width
(min width page-break-lines-max-width)
width))
(glyph (make-glyph-code page-break-lines-char 'page-break-lines))
(new-display-entry (vconcat (make-list width glyph))))
(unless (equal new-display-entry (elt buffer-display-table ?\^L))
Expand Down

0 comments on commit e33426a

Please sign in to comment.