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

feat: wrap search for next/prev hunk #23

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

hayderhassan
Copy link

@hayderhassan hayderhassan commented Jun 2, 2023

When navigating prev/next hunks, it stops at the first/last result in the file respectively. It would be more intuitive to continue the searching by wrapping round the other side of the file.

So with these changes, if the final hunk is reached when searching for next/prev hunk, it will wrap to the start/end of the file respectively.

- If the final hunk is reached when searching for next/prev hunk,
  wrap to the start/end of file respectively
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

1 participant