The VSCodeVim team prioritizes issues based on reaction count.
Is this a BUG REPORT or FEATURE REQUEST? (choose one): BUG REPORT
Environment:
What happened:
In specific cases, the yaw command will shift the cursor to the left. This case appears to be when the current word is preceded by a space _and_ not followed by a space.
The following case causes the cursor to shift, where | denotes the cursor position:
Start: await |vscode.window
End: await| vscode.window
The following starting scenarios were tested, and do not cause shifting:
await(|vscode.windowawait |vscode windowSimilar commands yiw and yw do not exhibit this behavior.
What did you expect to happen:
I expected the cursor to remain in the same location.
How to reproduce it:
Run the scenarios detailed above.
Closed with https://github.com/VSCodeVim/Vim/pull/2171
Actually, I'm not sure if you addressed this @westim in your PR.
@jpoon I think the 2 are a bit different. The PR addresses ysaw and yaw space padding. This issue is about cursor movement for yaw.
@jpoon that's correct; this was found while I was trying to write tests associated with that PR.
@westim This seems to be the behavior of vim 8.1.22?
Yeah, I don't think this is a bug. Closing.
Most helpful comment
@jpoon I think the 2 are a bit different. The PR addresses
ysawandyawspace padding. This issue is about cursor movement foryaw.