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

Improve foldfix performance and potentially fix some bugs(#1855 #2163) #2867

Merged
merged 4 commits into from
Jul 23, 2018

Conversation

xmbhasin
Copy link
Contributor

@xmbhasin xmbhasin commented Jul 22, 2018

What this PR does / why we need it:
Improved the foldfix setting behaviour for improved performance, reduced bugs, and hopefully easier extension and addition of more fold commands in the future.
Which issue(s) this PR fixes
Should fix #1855 and fix #2163, though it may require more testing. gulp test passed all tests with and without forcing configuration.foldFix to true, but more tests may need to be added.

Special notes for your reviewer:
One bug this may have introduced is flickering when prefixing a downward movement command with a large repeat. This is indicated in a comment inside MoveDownFoldFix but is still much better behaviour than before where an infinite loop would begin. To fix it we would need a more reliable way to detect the last visual line of a file (must account for both wrapped lines and folds).

@xconverge
Copy link
Member

Tough one for me to review due to the nature of foldFix in general 😄

Thanks for the contribution!

@xconverge xconverge merged commit 9cff13d into VSCodeVim:master Jul 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants