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

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

[nongnu] elpa/markdown-mode 8213d3794f 1/4: Adds gutter column to margin


From: ELPA Syncer
Subject: [nongnu] elpa/markdown-mode 8213d3794f 1/4: Adds gutter column to marginalized headers in tty mode
Date: Sat, 15 Jan 2022 21:58:29 -0500 (EST)

branch: elpa/markdown-mode
commit 8213d3794fb023970ee40fde3422649dbbb594d0
Author: Alexis Gallagher <alexis@alexisgallagher.com>
Commit: Alexis Gallagher <alexis@alexisgallagher.com>

    Adds gutter column to marginalized headers in tty mode
    
    This increases the left window margin size by 1, which is required so
    that in tty mode, when marginalized headers is enabeld, there is a one
    character whitespace between the left atx header chars and header
    text. This is the desired appearance and how it currently renders in
    GUI mode.
---
 markdown-mode.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/markdown-mode.el b/markdown-mode.el
index a4d08fd106..02087463f0 100644
--- a/markdown-mode.el
+++ b/markdown-mode.el
@@ -3383,7 +3383,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]