-
-
Notifications
You must be signed in to change notification settings - Fork 5.9k
allow get/set tab-local 'cmdheight' via gettabvar()/settabvar() #15713
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
base: master
Are you sure you want to change the base?
Conversation
|
|
||
| /* | ||
| * "indir" values for tab-local options. | ||
| * These need to be defined globally, so that the TV_COUNT can be used in the |
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.
TV_COUNT isn't used anywhere
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.
Yes. Fix the comment or remove the definition?
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.
Actually I think that means the implementation is incomplete. BV_COUNT and WV_COUNT are used for arrays that store script contexts that set local options, so if 'cmdheight' needs to be a fully tab-local option it's necessary to store a script context with the tabpage as well.
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.
I think that should be done in a separate PR about cmdheight.
Because there is only one tab-local option.
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.
Yeah, but we should still remember when this option was (re-)set right?
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.
I'll write another PR to make cmdheight as a true tab-local option.
And in the meantime I'd like to mark this PR as a WIP.
Fixes #4324.
Related #13893.