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(commands): extend_line to proper line when count and current line selected #5288

Merged
merged 3 commits into from
Dec 31, 2022

Conversation

gabydd
Copy link
Member

@gabydd gabydd commented Dec 25, 2022

for both extend_line_(above/below) the check for if current line is selected now works if there is a count:

this now means if you select a line with x and then do 2x 3 lines will be selected whereas before only 2 lines would be, this keeps 2x on a not fully selected line only selecting 2 lines which is the desired functionality of extend_line

fixes #5270

for both extend_line_(above/below) the check for if current line
is selected now works if there is a count
@the-mikedavis the-mikedavis added C-bug Category: This is a bug A-helix-term Area: Helix term improvements S-waiting-on-review Status: Awaiting review from a maintainer. labels Dec 26, 2022
Copy link
Member

@the-mikedavis the-mikedavis left a comment

Choose a reason for hiding this comment

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

This would be nice to add an integration test for in helix-term/tests/test/commands.rs

@gabydd
Copy link
Member Author

gabydd commented Dec 29, 2022

Sorry about that, I was thinking about doing that but totally forgot. Integration tests have been added now, it needed a trailing newline to work cause the test would add an extra newline after end if it didn't exist.

@the-mikedavis the-mikedavis merged commit 1b17552 into helix-editor:master Dec 31, 2022
semin-park pushed a commit to semin-park/helix that referenced this pull request Jan 4, 2023
semin-park pushed a commit to semin-park/helix that referenced this pull request Jan 4, 2023
hadronized pushed a commit to hadronized/helix that referenced this pull request Jan 4, 2023
freqmod pushed a commit to freqmod/helix that referenced this pull request Feb 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-helix-term Area: Helix term improvements C-bug Category: This is a bug S-waiting-on-review Status: Awaiting review from a maintainer.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

xx works ok; x2x works err
2 participants