Split Bug at Start of Line #3850
Labels
A-helix-term
Area: Helix term improvements
C-bug
Category: This is a bug
E-easy
Call for participation: Experience needed to fix: Easy / not much
E-good-first-issue
Call for participation: Issues suitable for new contributors
E-has-instructions
Call for participation: Has instructions for fixing the issue and opening a PR
Summary
When Split is used with a pattern that matches the start of a line, a selection is placed on the match even when there aren't any characters before it:
https://asciinema.org/a/NDCiZr7kfsMiUEuI88K37vybT
Reproduction Steps
I tried this:
hx
I expected this to happen:
The spaces in between and the newline would be selected
Instead, this happened:
There was an additional selection at the start of the line.
Helix log
N/A
Platform
Linux
Terminal Emulator
Alacritty
Helix Version
22.08.1-61-gb191ecf8
The text was updated successfully, but these errors were encountered: