vscode-vim icon indicating copy to clipboard operation
vscode-vim copied to clipboard

'b' and 'B' on second digit of number returns to incorrect place

Open mrkanaly opened this issue 7 years ago • 3 comments

Using the following tests, the back command can be shown to behave inappropriately. ^ represents the cursor position.

word 8888.8888
      ^
b
word 8888.8888
^

With B

word 8888.8888
      ^
B
word 8888.8888
^

Correct behavior would yield this:

word 8888.8888
      ^
b
word 8888.8888
     ^

Thank you!

mrkanaly avatar Aug 30 '18 00:08 mrkanaly

It actually appears to be any second character. I just happened to be editing a ton of numbers in a column at once.

mrkanaly avatar Aug 30 '18 00:08 mrkanaly

b during visual selection mode can also not pass special characters like : or ( )

Example (^ is cursor, - is a selected character)

test select:special
^
vEE
test select:special
------------------^
b
test select:special
------------^
b
test select:special
-----------^
b
test select:special
-----------^
bbbbbbbbbb
test select:special
-----------^

mrkanaly avatar Aug 30 '18 00:08 mrkanaly

OK, I confirmed it has a problem.

74th avatar Sep 02 '18 22:09 74th