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

Auto-complete corrupts when trying to wrap code in function call #5163

Closed
aral opened this issue Dec 15, 2022 · 2 comments
Closed

Auto-complete corrupts when trying to wrap code in function call #5163

aral opened this issue Dec 15, 2022 · 2 comments
Labels
A-helix-term Area: Helix term improvements C-bug Category: This is a bug

Comments

@aral
Copy link
Contributor

aral commented Dec 15, 2022

Summary

Auto-complete can corrupt code.

Reproduction Steps

Say I’m returning a value:

Screenshot from 2022-12-15 10-38-06

Now, I want to wrap that value in a function call (e.g., encodeUriComponent()… so I press i and enter insert mode and start typing the function name. en

Screenshot from 2022-12-15 10-38-20

So far, so good. I see the auto-completions appear and so I go to select the one I want:

Screenshot from 2022-12-15 10-38-27

However, instead of getting encodeUriComponent|value, I get encodeUriComponen|t and my code is corrupted.

(| = cursor)

Helix log

n/a

Platform

Linux (Fedora Silverblue 37)

Terminal Emulator

Black Box

Helix Version

helix 22.12 (0f2ae35)

@aral aral added the C-bug Category: This is a bug label Dec 15, 2022
@kirawi kirawi added the A-helix-term Area: Helix term improvements label Dec 15, 2022
@the-mikedavis
Copy link
Member

I think this is related to #4851 and fixed by #1819

@archseer
Copy link
Member

archseer commented Mar 9, 2023

Should be fixed by #6173

@archseer archseer closed this as completed Mar 9, 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
Projects
None yet
Development

No branches or pull requests

4 participants