Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Weird behaviour when scrolling horizontal in "git diff" #269

Open
prurigro opened this issue Feb 6, 2023 · 1 comment
Open

Weird behaviour when scrolling horizontal in "git diff" #269

prurigro opened this issue Feb 6, 2023 · 1 comment

Comments

@prurigro
Copy link

prurigro commented Feb 6, 2023

Hi! I finally upgraded to 2.x after years of holding off with 1.8.9, and I think I have pretty much everything working well again except for some strange behaviour in git diff when I've scrolled horizontally.

Everything starts out lined up, but scroll a few columns right and the unchanged text scrolls as expected while everything else stays fixed against the edge of the buffer. Scroll a few more columns right and the old text begins to scroll correctly while the new text continues to stay fixed against the edge of the buffer. Eventually everything starts scrolling correctly, but the old and new lines aren't lined up, which makes spotting the differences difficult.

I realize my description might be a bit hard to parse, so I've included some screenshots to show what I mean:

Not scrolled at all:
1

Scrolled a few lines right and the unchanged text shifts while the rest stays fixed:
2

Scrolled a few more lines right and everything but the changed text starts to scroll correctly:
3

Scrolled a bunch of additional lines right and now everything is scrolling correctly but not lined up:
4

@prurigro
Copy link
Author

prurigro commented Feb 6, 2023

I just confirmed the same behaviour exists with a vanilla vim install with only the pathogen and vimpager plugins, and let g:vimpager.passthrough = 0 and set nowrap settings.

I also noticed that while the same issue obviously doesn't exist with set nowrap, the column the text breaks on is dramatically different between the + and - rows (including when there are no changes before the break).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant