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

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

[nongnu] elpa/markdown-mode e4ff273dfd 3/4: Merge pull request #677 from


From: ELPA Syncer
Subject: [nongnu] elpa/markdown-mode e4ff273dfd 3/4: Merge pull request #677 from algal/feature/marginal-headers-tty
Date: Sat, 15 Jan 2022 21:58:29 -0500 (EST)

branch: elpa/markdown-mode
commit e4ff273dfd919f14f79829bf72e780831cfb2dbf
Merge: 1f8dda7465 fd9cb37d36
Author: Shohei YOSHIDA <syohex@gmail.com>
Commit: GitHub <noreply@github.com>

    Merge pull request #677 from algal/feature/marginal-headers-tty
    
    Adds space to fix marginalized ATX header rendering in tty mode
---
 CHANGES.md       | 1 +
 markdown-mode.el | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/CHANGES.md b/CHANGES.md
index 2dfb1f5c89..eeedeea9e4 100644
--- a/CHANGES.md
+++ b/CHANGES.md
@@ -50,6 +50,7 @@
     -   Add NonGNU ELPA badge to README and website
 
 *   Bug fixes:
+    -   Fix `markdown-marginalize-headers` rendering in tty mode
     -   Fix issue with `nil` being returned from 
`markdown-imenu-create-nested-index` [GH-578][]
     -   Fix remaining flyspell overlay in code block or comment issue 
[GH-311][]
     -   Fix inline URL regular expression which starts/ends with spaces 
[GH-514][]
diff --git a/markdown-mode.el b/markdown-mode.el
index 270fddfd3b..303d9f2ffc 100644
--- a/markdown-mode.el
+++ b/markdown-mode.el
@@ -3384,7 +3384,7 @@ SEQ may be an atom or a sequence."
              (margin-char-width (/ margin-pixel-width (default-font-width))))
         (set-window-margins nil margin-char-width))
     ;; As a fallback, simply set margin based on character count.
-    (set-window-margins nil markdown-marginalize-headers-margin-width)))
+    (set-window-margins nil (1+ markdown-marginalize-headers-margin-width))))
 
 (defun markdown-fontify-headings (last)
   "Add text properties to headings from point to LAST."



reply via email to

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