Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cursor is always in center of page #4632

Closed
0xhmn opened this issue Mar 8, 2020 · 6 comments
Closed

Cursor is always in center of page #4632

0xhmn opened this issue Mar 8, 2020 · 6 comments
Labels
Milestone

Comments

@0xhmn
Copy link

0xhmn commented Mar 8, 2020

The above commit (4434) seems to behave unexpectedly around heavily folded code. If I'm traversing lines (simple cursor movements like jk) in a non-folded section of code, the cursor works just fine. When I'm doing the same amidst many folds, cursor navigation behaves almost like a scrollOffset is set (keeping the cursor in the center always).

ezgif com-video-to-gif

@nightire
Copy link

Confirmed. Downgrade to 1.12.4 works again.

@PaulTalbot-INL
Copy link

Also confirmed, and downgrading fixed it.

@J-Fields
Copy link
Member

This was caused by #4434. I'm not sure if VSCode's API gives us enough information to do this correctly, so we may just want to check vim.foldFix and revert to the old behavior if that's enabled.

@jordankaiser
Copy link

Confirmed the issue. Downgrading to 1.12.4 fixes for me as well.

@0xhmn
Copy link
Author

0xhmn commented Mar 22, 2020

Thank you Jason works as expected now.

@J-Fields
Copy link
Member

Thank @DianeLooney! 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants