aboutsummaryrefslogtreecommitdiff
path: root/compat-28.el
diff options
context:
space:
mode:
Diffstat (limited to 'compat-28.el')
-rw-r--r--compat-28.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/compat-28.el b/compat-28.el
index ac205cb..af982d4 100644
--- a/compat-28.el
+++ b/compat-28.el
@@ -221,7 +221,8 @@ and BLUE, is normalized to have its value in [0,65535]."
(compat-defun make-separator-line (&optional length) ;; <compat-tests:make-separator-line>
"Make a string appropriate for usage as a visual separator line.
If LENGTH is nil, use the window width."
- (if (display-graphic-p)
+ ;; :extend is only supported on Emacs 27 and newer
+ (if (and (eval-when-compile (> emacs-major-version 26)) (display-graphic-p))
(propertize "\n" 'face '(:extend t :height 0.1 :inverse-video t))
(concat (make-string (or length (1- (window-width))) ?-) "\n")))