74th / vscode-vim

vim emulator for Visual Studio Code
MIT License
215 stars 25 forks source link

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

Open mrkanaly opened 5 years ago

mrkanaly commented 5 years ago

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 commented 5 years ago

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

mrkanaly commented 5 years ago

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
-----------^
74th commented 5 years ago

OK, I confirmed it has a problem.