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 erroneous indent between closers of auto-pairs #5330

Merged
merged 1 commit into from
Dec 29, 2022

Conversation

Triton171
Copy link
Contributor

Currently, inserting a newline sometimes creates an additional indent (and an additional line) even if the cursor is not between matching auto-pairs:

))

Pressing enter when the cursor is on the second closing bracket results in the following text and indented cursor:

)
    |
)

This commit fixes that issue (which occured whenever the cursor was between 2 closers of some auto-pair) and the wrong documentation that probably caused this in the first place.

inserting a newline between 2 closers of an auto-pair.
@kirawi kirawi added A-helix-term Area: Helix term improvements S-waiting-on-review Status: Awaiting review from a maintainer. labels Dec 28, 2022
@the-mikedavis the-mikedavis merged commit 5f2fe5f into helix-editor:master Dec 29, 2022
semin-park pushed a commit to semin-park/helix that referenced this pull request Jan 4, 2023
inserting a newline between 2 closers of an auto-pair.
hadronized pushed a commit to hadronized/helix that referenced this pull request Jan 4, 2023
inserting a newline between 2 closers of an auto-pair.
freqmod pushed a commit to freqmod/helix that referenced this pull request Feb 8, 2023
inserting a newline between 2 closers of an auto-pair.
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 S-waiting-on-review Status: Awaiting review from a maintainer.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants