-
-
Notifications
You must be signed in to change notification settings - Fork 761
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
Jump to the next young file #1698
Conversation
a590022
to
9f5ad01
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks okay. But please remove this line from the commit message:
The starting position from which the next young file is searched is the current cursor position or the next position if the current position of the cursor points to a young file.
This is not the case anymore with the new loop. And even in the old loop, this was dead code:
- If initial file was young, it'd get skipped (before the loop).
- If initial file wasn't young, it'd get skipped as well (but this time inside the loop).
So the initial file was always being skipped anyways.
4faf4f6
to
9d9394b
Compare
Looks like I should correct the patches also. Is that correct? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like I should correct the patches also. Is that correct?
Feel free to do it if you want to. Otherwise I'll look at it tomorrow.
Forward jumping to the next young file is implemented. The starting position from which the next young file is searched is the next position. If no young file has been found, the search starts from the beginning. It stops at the initial position where the search has started.
8671b2b
to
dedf055
Compare
Weird, looks like the |
Thank you! |
Forward jumping to the next young file is implemented.
The starting position from which the next young file is searched is the current cursor position or the next position if the current position of the cursor points to a young file.The starting position from which the next young file is searched is the next position. If there no young file has been found, the search starts from the beginning. It stops at the initial position where the search has started.