[Top][All Lists]

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

Line height issues with display-line-number-mode

From: Clément Pit-Claudel
Subject: Line height issues with display-line-number-mode
Date: Tue, 7 May 2019 12:40:02 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1

Hi all,

I have a package (quick-peek) that writes code like the following to display 
thin lines:

(with-current-buffer (get-buffer-create "*test*")
  (insert "test\ntest\ntest")
  (let ((ov (make-overlay 1 6))
        (str (propertize "\n" 'face '(:height 1 :background "#edd400"))))
    (overlay-put ov 'after-string str))
  (pop-to-buffer (current-buffer)))

With display-line-numbers-mode, however, the thin line to be a full character 
tall.  I have attached screenshots.

Is there a workaround for this issue?

More generally, is there a way to prevent line numbers from affecting the 
height of the corresponding line?  For example in compact-docstrings I shrink 
blank lines in documentation strings to half their usual height, but enabling 
display-line-numbers-mode stretches those lines back to regular height.


Attachment: no-line-numbers.png
Description: PNG image

Attachment: with-line-numbers.png
Description: PNG image

reply via email to

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