Vim: [End of line] - mouse selection skip last character

Created on 3 Nov 2016  路  6Comments  路  Source: VSCodeVim/Vim


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!

areselection kinbug

Most helpful comment

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.

All 6 comments

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.

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

VSCode 1.37.1
VSCodeVim 1.10.2

@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?

@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.

@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?

Will do!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

lucastheisen picture lucastheisen  路  3Comments

gerardmrk picture gerardmrk  路  3Comments

typeoneerror picture typeoneerror  路  3Comments

edwintorok picture edwintorok  路  3Comments

Jimmy-Z picture Jimmy-Z  路  3Comments