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

Include the last newline when kill/copying linewise. #1055

Merged
merged 2 commits into from
Sep 5, 2023

Conversation

fukamachi
Copy link
Collaborator

No description provided.

Comment on lines 289 to 292
(when (eq type :line)
(setf (point-charpos (current-point))
(max 0
(min (1- (length (line-string (current-point)))) pos))))
Copy link
Member

@cxxxr cxxxr Sep 5, 2023

Choose a reason for hiding this comment

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

Direct change of point-charpos is deprecated because it breaks encapsulation.
How about (line-offset (current-point) 0 charpos)?

@fukamachi fukamachi requested a review from cxxxr September 5, 2023 12:22
@cxxxr cxxxr merged commit 6a1e39d into lem-project:main Sep 5, 2023
1 check passed
fukamachi added a commit to fukamachi/lem that referenced this pull request Sep 5, 2023
cxxxr added a commit that referenced this pull request Sep 5, 2023
Fix vi-mode register tests to get along with changes of #1055
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants