Skip to content

Duplicated lines when moving in pager #3235

@t-b

Description

@t-b

Setup

  • Which version of Git for Windows are you using? Is it 32-bit or 64-bit?

64bit

$ git --version --build-options

git version 2.32.0.rc0.windows.1    cpu: x86_64                                                                                                             built from commit: d837c6707a646a69003f0ed2a490911c30954894       sizeof-long: 4                                                                                                          sizeof-size_t: 8
shell-path: /bin/sh
feature: fsmonitor--daemon                                                                                              
  • Which version of Windows are you running? Vista, 7, 8, 10? Is it 32-bit or 64-bit?
$ cmd.exe /c ver

Microsoft Windows [Version 10.0.19042.985] 
  • What options did you set as part of the installation? Or did you choose the
    defaults?
# One of the following:
> type "C:\Program Files\Git\etc\install-options.txt"
> type "C:\Program Files (x86)\Git\etc\install-options.txt"
> type "%USERPROFILE%\AppData\Local\Programs\Git\etc\install-options.txt"
$ cat /etc/install-options.txt

Editor Option: VIM
Custom Editor Path:
Default Branch Option:
Path Option: Cmd
SSH Option: OpenSSH
Tortoise Option: false
CURL Option: OpenSSL
CRLF Option: CRLFCommitAsIs
Bash Terminal Option: ConHost
Git Pull Behavior Option: Rebase
Use Credential Manager: Disabled
Performance Tweaks FSCache: Enabled
Enable Symlinks: Disabled
Enable Pseudo Console Support: Disabled

Details

Problem shows in cmd and in Windows terminal. I haven't tried something else.

git log ecf7
# now move one down, one up with the arrow keys

and then the screen looks like

grafik

notice the duplicated line at the top. Somehow the pager thinks it has to break the line. But it is even not correctly broken. When I resize the cmd window it is redrawn correctly. This is especially annoying when the code itself is longer than the magical maximum line length.

This bug was not present with 2.31.x.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions