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

Cursor position is not right in inlay message when using arrow key to navigate. #3027

Closed
davyzhang opened this issue Feb 6, 2020 · 1 comment

Comments

@davyzhang
Copy link

davyzhang commented Feb 6, 2020

master branch
I can not move cursor behind "b" in this case
Screen-Recording-2020-02-06-at-3 16 15-PM

@lnicola
Copy link
Member

lnicola commented Feb 6, 2020

Duplicate of #1623.

@lnicola lnicola closed this as completed Feb 6, 2020
lnicola pushed a commit to lnicola/rust-analyzer that referenced this issue Apr 7, 2024
Avoid unnecessary Vec resize.

If `size > 0` current implementation will first create an empty vec and then push an element into it, which will cause a resize that can be easily avoided.

It's obviously not a big deal, but this also gets rid of `mut` local variable.
RalfJung pushed a commit to RalfJung/rust-analyzer that referenced this issue Apr 27, 2024
Avoid unnecessary Vec resize.

If `size > 0` current implementation will first create an empty vec and then push an element into it, which will cause a resize that can be easily avoided.

It's obviously not a big deal, but this also gets rid of `mut` local variable.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants