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

Make preview window follow cursor when scrolling #705

Merged
merged 1 commit into from
Jan 3, 2023

Conversation

ooesili
Copy link
Contributor

@ooesili ooesili commented Jan 3, 2023

This commit makes the hunk preview window follow the cursor when scrolling.

To see this behavior, open a preview window using :Gitsigns preview_hunk, then use Ctrl-e and Ctrl-y to scroll the buffer. Without this patch, the window will stay where it was opened. With this patch, the window will change position to be follow the cursor as the buffer scrolls.

@lewis6991
Copy link
Owner

Looks good. Thanks!

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

Successfully merging this pull request may close these issues.

None yet

2 participants