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

Fix invalid index of lem-vi-mode/commands:vi-delete #1290

Merged
merged 1 commit into from Feb 6, 2024

Conversation

gos-k
Copy link
Collaborator

@gos-k gos-k commented Feb 6, 2024

Fix invalid index of lem-vi-mode/commands:vi-delete.
column-point will get invalid index error, after deleting.

@gos-k gos-k self-assigned this Feb 6, 2024
@gos-k gos-k marked this pull request as draft February 6, 2024 14:53
@gos-k gos-k marked this pull request as ready for review February 6, 2024 14:57
(ok (buf= #?"apple\no<ra>nge\ng<[r]a>pe\n"))))
(testing "delete"
(with-vi-buffer (#?"[a]pple\norange\ngrape\n")
(cmd "<C-v>llld")
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is this correct, though it doesn't reach the end of the line?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Sorry, I confirmed this test fails with the current main branch.

@fukamachi fukamachi merged commit d1818bd into lem-project:main Feb 6, 2024
1 check passed
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