emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/page-break-lines 2da89cae7d 66/80: Add fboundp check for l


From: ELPA Syncer
Subject: [nongnu] elpa/page-break-lines 2da89cae7d 66/80: Add fboundp check for line-number-display-width
Date: Tue, 5 Sep 2023 04:03:08 -0400 (EDT)

branch: elpa/page-break-lines
commit 2da89cae7db5ab60aa85a045dc50cd019433aba0
Author: Steve Purcell <steve@sanityinc.com>
Commit: Steve Purcell <steve@sanityinc.com>

    Add fboundp check for line-number-display-width
---
 page-break-lines.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/page-break-lines.el b/page-break-lines.el
index 4b8d7c785f..8c68fed613 100644
--- a/page-break-lines.el
+++ b/page-break-lines.el
@@ -130,7 +130,8 @@ its display table will be modified as necessary."
               (set-face-attribute 'page-break-lines nil :height default-height)
               (let* ((cwidth (char-width page-break-lines-char))
                      (wwidth-pix (- (window-width nil t)
-                                    (if (bound-and-true-p display-line-numbers)
+                                    (if (and (bound-and-true-p 
display-line-numbers)
+                                             (fboundp 
'line-number-display-width))
                                         (line-number-display-width t)
                                       0)))
                      (width (- (/ wwidth-pix (frame-char-width) cwidth)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]