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

Ensure a cursor can continue to iterate elements in reverse direction by call Next when it has already reached the beginning #734

Merged
merged 2 commits into from
May 2, 2024

Conversation

ahrtr
Copy link
Member

@ahrtr ahrtr commented Apr 21, 2024

Fix #733

@ahrtr ahrtr force-pushed the cursor_20240421 branch from 7199760 to ba405fc Compare April 21, 2024 11:55
@ahrtr ahrtr force-pushed the cursor_20240421 branch 2 times, most recently from 17381d8 to 7bbb813 Compare April 21, 2024 13:05
@ahrtr
Copy link
Member Author

ahrtr commented Apr 23, 2024

cc @fuweid @tjungblu PTAL

Copy link
Contributor

@tjungblu tjungblu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@ahrtr ahrtr force-pushed the cursor_20240421 branch from 7bbb813 to e248ca3 Compare April 26, 2024 14:42
@ahrtr
Copy link
Member Author

ahrtr commented Apr 29, 2024

@fuweid Please take a look, and let me know if you have any comment, thx

@fuweid
Copy link
Member

fuweid commented Apr 29, 2024

Hi @ahrtr I'm OOO until Thursday. Will check this in this week. Sorry for that

ahrtr added 2 commits April 30, 2024 16:00
…iterate elements in reverse direction after it has reached to the first element

Signed-off-by: Benjamin Wang <benjamin.ahrtr@gmail.com>
… by call Next when it has already reached the beginning

Signed-off-by: Benjamin Wang <benjamin.ahrtr@gmail.com>
@ahrtr ahrtr force-pushed the cursor_20240421 branch from e248ca3 to 6967960 Compare April 30, 2024 15:00
cursor.go Show resolved Hide resolved
Copy link
Member

@fuweid fuweid left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

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

Successfully merging this pull request may close these issues.

Cursor.Prev() out of range issue v1.3.9
3 participants