GNU bug report logs - #32337
26.1; display-line-numbers-mode makes cursor ill-aligned when number face is changed

Previous Next

Package: emacs;

Reported by: Carlos Pita <carlosjosepita <at> gmail.com>

Date: Tue, 31 Jul 2018 19:20:02 UTC

Severity: minor

Found in version 26.1

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: Carlos Pita <carlosjosepita <at> gmail.com>
Cc: rms <at> gnu.org, 32337 <at> debbugs.gnu.org
Subject: bug#32337: 26.1; display-line-numbers-mode makes cursor ill-aligned when number face is changed
Date: Tue, 25 Sep 2018 22:54:53 +0300
> From: Carlos Pita <carlosjosepita <at> gmail.com>
> Date: Tue, 25 Sep 2018 16:40:43 -0300
> Cc: rms <at> gnu.org, 32337 <at> debbugs.gnu.org
> 
> I mean, you're already computing the width as if the numbers would go
> down up to the bottom of the window and then filling them with spaces
> instead of numbers when below EOB, it seems to me that treating
> below-EOB lines the same way than above-EOB ones (in the sense of
> limiting the display number face only to the first columns of the
> buffer) isn't that removed from the current algorithm, although from a
> cursory look I recognize I'm no quite following the code.

I'm confused: you were talking about the cursor, not about characters,
right?  The problem is that an empty line at EOB doesn't have any
characters to determine the height of the line, and the height then
comes from the line-number display, which is lower.




This bug report was last modified 6 years and 126 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.