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

[End of line] - mouse selection skip last character #1034

Closed
gplume opened this issue Nov 3, 2016 · 6 comments
Closed

[End of line] - mouse selection skip last character #1034

gplume opened this issue Nov 3, 2016 · 6 comments

Comments

@gplume
Copy link

gplume commented Nov 3, 2016


Since 4.0.1 when I select a block or just a line with the mouse, last character is skipped from selection (both visually and in clipboard).
Before 4.0.0 and for me, the end of line behavior (clicking with the mouse randonly at the end of a line) would select an inexistant space character and I thought the problem was solved with the new version 4, but I've just read that only 4.0.1 solved the problem. Perhaps it was due to my settings.json options :

"editor.cursorBlinking": "solid",
 "vim.useSolidBlockCursor": true

Thanks for great work, I'm almost using vscode 100% of time now!

@mgood
Copy link

mgood commented Nov 7, 2016

Yeah, I think this may be a bug with PR #1006. It looks like it was intended to fix an issue with the Vim commands to move to the end of the line, but it seems to have an issue when selecting with the mouse.

I encountered this double-clicking the last word on a line to replace it. The selection omitted the last character of the word, so my replacement left that last stray character on the line.

I have Vim 0.4.1 and VSCode 1.7.1. I don't have any user settings for the cursor.

@uglyboxer
Copy link

By any chance was there a reversion to this behavior? I'm seeing it now with:

VSCode 1.37.1
VSCodeVim 1.10.2

@J-Fields
Copy link
Member

J-Fields commented Sep 3, 2019

@uglyboxer I'm not seeing it. Could you tell me what platform you're on and maybe show a video of the bug you're seeing?

@uglyboxer
Copy link

uglyboxer commented Sep 3, 2019

@J-Fields I'm on MacOSX 10.14.6 (Mojave)

copypaste

I just noticed it only behaves this way if the cursor is already at the last character. If the cursor is sitting elsewhere, everything is cozy.

@J-Fields
Copy link
Member

J-Fields commented Sep 4, 2019

@uglyboxer Thanks, I'm able to repro. Rather than re-opening this (as it'll probably get buried) could you open a new issue and link to this one?

@uglyboxer
Copy link

Will do!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants