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

split_selection_on_newlines selects following line too #9752

Closed
matoous opened this issue Feb 28, 2024 · 1 comment · Fixed by #9756
Closed

split_selection_on_newlines selects following line too #9752

matoous opened this issue Feb 28, 2024 · 1 comment · Fixed by #9756
Labels
A-command Area: Commands C-bug Category: This is a bug

Comments

@matoous
Copy link
Contributor

matoous commented Feb 28, 2024

Summary

Split selections on new lines inserts cursors also on the next line. Seems to be related to #9422

Reproduction Steps

I tried this:

  1. hx
  2. Select any line(s)
  3. split_selection_on_newlines

I expected this to happen:

(using _ to signify selection)

For this text

_aaaa
bbbb_

I expect

_aaaa_
_bbbb_

To be the selections after split.

Instead, this happened:

_aaaa_
_bbbb_
_

Helix log

Helix log doesn't contain anything related to this issue. Can provide if necessary.

Platform

macOS

Terminal Emulator

wezterm 20240203-110809-5046fc22

Installation Method

source

Helix Version

083a9e7

@matoous matoous added the C-bug Category: This is a bug label Feb 28, 2024
@matoous matoous changed the title split_selection_on_newlines selects followup line split_selection_on_newlines selects following line too Feb 28, 2024
@the-mikedavis the-mikedavis added the A-command Area: Commands label Feb 28, 2024
@pascalkuthe
Copy link
Member

srry for the regression and thanks for the quick report!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-command Area: Commands C-bug Category: This is a bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants