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

Fold should not open when your cursor is over it #5051

Closed
peey opened this issue Jul 20, 2020 · 1 comment
Closed

Fold should not open when your cursor is over it #5051

peey opened this issue Jul 20, 2020 · 1 comment

Comments

@peey
Copy link

peey commented Jul 20, 2020

Describe the bug
In vim, folds don't open even if your cursor is over the ... fold element. It only opens if you open it explicitly (e.g. zO)

To Reproduce
Steps to reproduce the behavior:

  1. Make a new JavaScript file
  2. Write a function
  3. Fold the function body
  4. Bring your cursor to the fold. Or just try to navigate to line below folded function using j.

Expected behavior
Fold shouldn't open.

Environment (please complete the following information):

  • Extension (VsCodeVim) version: 1.15.0
  • VSCode version: 1.47.0
  • OS: Ubuntu 20.04
@J-Fields
Copy link
Member

Duplicate of #1004, this is a result of VSCode's insufficient folding API. Try enabling foldfix; it's hacky and has other bugs, but it should resolve this particular issue

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

No branches or pull requests

2 participants