-
Notifications
You must be signed in to change notification settings - Fork 5
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
fix handling multiple windows for a buffer - fix #11 #12
base: master
Are you sure you want to change the base?
fix handling multiple windows for a buffer - fix #11 #12
Conversation
it's working now, although it's missing tests... but you may want to add those in a separate PR |
cause I'm uncertain of when can I add them |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good overall, but I'm not 100% sure about the change in the way the viewport is obtained. We get the viewport inside the autocmd handler, and would you please give more context/explanation about why this change is necessary and makes more sense? (the previous logic was written by the original author in 2019, so I'm not quite familiar with why @numiria had needed this -- see 3dc14aa for the context).
oh, I see ... it seems fetching the viewports from python can be costly (not sure how bad) the change to obtaining them from python was rather because I prefer to have as little vimscript as possible... I don't mind making the changes to fetch all viewports from vimscript. will do just that |
ready to go I re-implemented the get_viewports() function in lua, but it could be written in vimscript in the future |
7c82ba6
to
6225d4b
Compare
Thanks for the contribution again. Actually I'm having a hard time reproducing the bug. I tried this session but haven't had the bug. Can you make a more clean step please, possibly using neither |
lemme try and add an unit test It's probably not going to be ready this week. Hopefully this month |
oh, I see that we're not testing highlights. the to-be-implemented test points to neovim/neovim#6412, which has been solved we may want to address that TODO first |
I see. I will work on refactoring to switch to BTW using the classic vim API |
Actually I don't mind we don't have tests yet as we're lacking a infra for testing highlights, but I still would like to reproduce the issue. |
Will pick up the MVE-as-test, although I was shifting my focus into implementing an LSP server that only does semantic highlight using code from this repo anyone reading this can chip in with such test in the meantime |
- run `nvim -S reproducible_vimsession.vim` - move around the windows, eventually you'll hit a de-coloring as described in wookayin#11
594a67e
to
b5123e3
Compare
fixes #11