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

g:lastplace_open_folds doesn't work when foldmethod is set in modeline #30

Closed
djpohly opened this issue Nov 23, 2022 · 1 comment
Closed

Comments

@djpohly
Copy link

djpohly commented Nov 23, 2022

Since the BufRead event happens before modelines are processed, lastplace cannot tell when the cursor will be inside a fold. It sounds from :help BufRead that BufWinEnter would be the right place for this functionality.

@farmergreg
Copy link
Owner

@djpohly could you test and see if this bug has been fixed? i don't use folds very much, but i think i've found and fixed the issue you found. Thanks for the bug report and your help!

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

No branches or pull requests

2 participants