unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Leonardo Dagnino <leodag.sch@gmail.com>
Cc: 49891@debbugs.gnu.org
Subject: 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: Fri, 06 Aug 2021 10:55:06 +0300	[thread overview]
Message-ID: <83lf5fhusl.fsf@gnu.org> (raw)
In-Reply-To: <CANtbE_xao3hJADWMDMUCzkcGCUV7+8L-2swZsT77iHDEpntYiQ@mail.gmail.com> (message from Leonardo Dagnino on Thu, 5 Aug 2021 00:32:25 -0300)

> From: Leonardo Dagnino <leodag.sch@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.





  reply	other threads:[~2021-08-06  7:55 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-05  3:32 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 Leonardo Dagnino
2021-08-06  7:55 ` Eli Zaretskii [this message]
2021-08-08  6:10   ` Leonardo Dagnino
2021-08-08  6:34     ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83lf5fhusl.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=49891@debbugs.gnu.org \
    --cc=leodag.sch@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).