[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/markdown-mode 58f2d22: Use window-body-width -1 for hr
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/markdown-mode 58f2d22: Use window-body-width -1 for hr |
Date: |
Sun, 30 May 2021 14:57:32 -0400 (EDT) |
branch: elpa/markdown-mode
commit 58f2d22526ac1e4abd4ee1afff8624d2dd3123d3
Author: Paul W. Rankin <code@paulwrankin.com>
Commit: Jason Blevins <jblevins@xbeta.org>
Use window-body-width -1 for hr
In console Emacs, a line of chars of length N will overhang a
window-body-width of N by 1 because of the trailing '\'. Using N-1 avoids this
problem and seems to be the easiest way to not have hrs overhang each line.
---
markdown-mode.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/markdown-mode.el b/markdown-mode.el
index aba9e6f..b94e183 100644
--- a/markdown-mode.el
+++ b/markdown-mode.el
@@ -3426,7 +3426,7 @@ SEQ may be an atom or a sequence."
font-lock-multiline t
,@(when (and markdown-hide-markup hr-char)
`(display ,(make-string
- (window-body-width) hr-char)))))
+ (1- (window-body-width)) hr-char)))))
t)))
(defun markdown-fontify-sub-superscripts (last)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [nongnu] elpa/markdown-mode 58f2d22: Use window-body-width -1 for hr,
ELPA Syncer <=