branch: elpa/markdown-mode
commit 58f2d22526ac1e4abd4ee1afff8624d2dd3123d3
Author: Paul W. Rankin <c...@paulwrankin.com>
Commit: Jason Blevins <jblev...@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)

Reply via email to