GNU bug report logs - #49891
28.0.50; Automatic hscroll does not consider line numbers when checking hscroll-margin, causing point to get stuck in the margin when using a small hscroll-step

Previous Next

Package: emacs;

Reported by: Leonardo Dagnino <leodag.sch <at> gmail.com>

Date: Thu, 5 Aug 2021 15:01:01 UTC

Severity: normal

Found in version 28.0.50

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

Bug is archived. No further changes may be made.

Full log


Message #11 received at 49891 <at> debbugs.gnu.org (full text, mbox):

From: Leonardo Dagnino <leodag.sch <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 49891 <at> debbugs.gnu.org
Subject: Re: bug#49891: 28.0.50; Automatic hscroll does not consider line
 numbers when checking hscroll-margin, causing point to get stuck in the
 margin when using a small hscroll-step
Date: Sun, 8 Aug 2021 03:10:05 -0300
It is fixed indeed, tested with multiple values and seems to be
working as expected in all cases.

Thanks for the quick fix!

Em sex., 6 de ago. de 2021 às 04:55, Eli Zaretskii <eliz <at> gnu.org> escreveu:
>
> > From: Leonardo Dagnino <leodag.sch <at> gmail.com>
> > Date: Thu, 5 Aug 2021 00:32:25 -0300
> >
> > Steps to reproduce in emacs -Q:
> > (display-line-numbers-mode)
> > (setq truncate-lines t
> >   hscroll-step 1)
> > (insert-char ?a 200)
> >
> > Then press left arrow until point gets in hscroll-margin. The point
> > will be inside the margin, at buffer's column hscroll-margin minus
> > display-line-numbers's current width. Even pressing right arrow still
> > has point inside the margin, triggering the bug again, making it
> > "stuck" at that column.
>
> Thanks, this should be fixed now on the master branch; please test.



-- 
Leonardo Dagnino




This bug report was last modified 3 years and 343 days ago.

Previous Next


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