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

Expand selection does not correctly expand to method arguments #12463

Open
WaffleLapkin opened this issue Jan 9, 2025 · 0 comments
Open

Expand selection does not correctly expand to method arguments #12463

WaffleLapkin opened this issue Jan 9, 2025 · 0 comments
Labels
C-bug Category: This is a bug

Comments

@WaffleLapkin
Copy link

Summary

When using expand_selection on a method name, it first expands to the receiver and only then covers the arguments, instead of selecting the whole method call at once.

Reproduction Steps

I tried this:

  1. hx
  2. :set-language rust
  3. write
    fn main() {
        a.b(c);
    }
  4. Go to b
  5. Use expand_selection (alt+o)

I expected this to happen: selection covers the whole a.b(c) method call.

Instead, this happened: selection only covers a.b.

image

Compare this to vscode+rust-analyzer:

image

Helix log

Not important

Platform

Linux

Terminal Emulator

alacritty 0.14.0

Installation Method

nix flake

Helix Version

helix 24.7 (9dcc1f0)

@WaffleLapkin WaffleLapkin added the C-bug Category: This is a bug label Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: This is a bug
Projects
None yet
Development

No branches or pull requests

1 participant