question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`yaw` shifts the cursor in certain scenarios

See original GitHub issue
  • Click thumbs-up 👍 on this issue if you want it!
  • Click confused 😕 on this issue if not having it makes VSCodeVim unusable.

The VSCodeVim team prioritizes issues based on reaction count.


Is this a BUG REPORT or FEATURE REQUEST? (choose one): BUG REPORT

Environment:

  • VSCode Version: 1.18.1
  • VsCodeVim Version: 0.10.5
  • OS: Win10

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.window
  • await |vscode window

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

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
Chilleecommented, Nov 22, 2017

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

0reactions
J-Fieldscommented, Dec 2, 2019

Yeah, I don’t think this is a bug. Closing.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Mouse cursor on screen shifted up and to the left - Dell
The cursor shows up about one cursor width to the left and above the location where the mouse actuates. The behavior is consistent...
Read more >
Why does the zoom sometimes stop at a point?
This is particularly annoying in the following scenario: I often land up left clicking on the scene and the 3D cursor shifts there....
Read more >
Headmouse: A Simple Cursor Controller based on Optical ...
This calibration helps us adjust the thresholds based on the ambient light and IR noise in different situations. Once the thresholds are learned,...
Read more >
Camera - LearnOpenGL
Given a pitch and a yaw value we can convert them into a 3D vector that represents a new direction vector. The process...
Read more >
My text cursor keeps going to the left side and I can't click on
My laptop suddenly won't type properly and the text cursor keeps going to the left most or right most when typing in some...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found