-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Join empty lines with only one space in join_selections
#8989
Join empty lines with only one space in join_selections
#8989
Conversation
fixes the issue that lines with only spaces are getting joined as well
This would be a good opportunity to add a test case for |
join_selections
Damn, hm... may I ask if there's a possible way to start the tests for the other platforms so I can also try them locally? |
ok, just found act and I'll try with it. |
@the-mikedavis ok, could you please restart the workflow please? Hopefully it will work this time. |
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.
This is looking good 👍
Just some small style nits
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.
Thanks for fixing this!
helix-term/src/commands.rs
Outdated
let separator = { | ||
let line_end_index = line_end_char_index(&slice, line + 1); | ||
let line_contains_only_space = end == line_end_index; | ||
if line_contains_only_space { |
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.
You can use .then
here
…or#8989) * fix: helix-editor#8977 fixes the issue that lines with only spaces are getting joined as well * reverting some renamings * improve empty line check * adding integration test * reverting code block * fix conditon check for line end * applying suggested style
…or#8989) * fix: helix-editor#8977 fixes the issue that lines with only spaces are getting joined as well * reverting some renamings * improve empty line check * adding integration test * reverting code block * fix conditon check for line end * applying suggested style
…or#8989) * fix: helix-editor#8977 fixes the issue that lines with only spaces are getting joined as well * reverting some renamings * improve empty line check * adding integration test * reverting code block * fix conditon check for line end * applying suggested style
…or#8989) * fix: helix-editor#8977 fixes the issue that lines with only spaces are getting joined as well * reverting some renamings * improve empty line check * adding integration test * reverting code block * fix conditon check for line end * applying suggested style
…or#8989) * fix: helix-editor#8977 fixes the issue that lines with only spaces are getting joined as well * reverting some renamings * improve empty line check * adding integration test * reverting code block * fix conditon check for line end * applying suggested style
fixes the issue that lines with only spaces are getting joined as well
fixes #8977