-
Notifications
You must be signed in to change notification settings - Fork 17
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
Options not restored across tabs #7
Comments
Wow I missed that! From the docs:
I'll fix that. Have you noticed this happening with anything else, or just cmdheight? |
Thanks so much! Also, I have only noticed it for |
I believe I've fixed the issue, but please confirm. This was a bit hacky because there's not good support for tab-local options in the lua API. Also, I just put in a performance optimization of disabling most autocmds during save & load. LMK if that causes any odd behavior for you. |
Just tested this @stevearc and it seems to be working as intended with the tab restore stuff. I will keep an eye out for weird behavior moving forward, but I will go ahead and close this issue since the topic of this one seems to be resolved. That way I can re-open if something weird comes up or if I find new weird behavior I can open a new issue. Thanks again for the quick response, investigation, and fix! |
I have noticed that when I restore a multi-tab session the options are not restored to every tab that is created. Things like
cmdheight
are only fully restored in the tab that ends up getting focused and not the other tabs. I think this is because things likevim.opt.cmdheight
are tab scoped and need to be restored each time.The text was updated successfully, but these errors were encountered: