Skip to content

Selecting long lines in a diff hunk in Emacs 25 highlights extra lines #2758

@fice-t

Description

@fice-t
  1. First make some changes to a file so its diff contains lines longer than the width of the Emacs window.
  2. From emacs -Q load magit and enter the status buffer for the repo.
  3. View the diff and go the end of the line (past the window edge).
  4. C-SPC to select the line.

Notice how it's normal in Emacs 24.5 but in 25.1 the lines above and below the line are highlighted as well, pushing the selected line and the one below it down 1/2 lines respectively.

PS: I noticed how if you have consecutive lines that go past the window edge and you try to use the mouse to click and drag a region, the selection will jump right to the bottom of the lines instead of going line by line as would happen when using the keyboard.

Magit 20160902.1451, Git 2.9.3, Emacs 25.1.1, gnu/linux

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug emacsA bug in Emacs that affects uswont fixThis will not be worked on

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions