Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@Milly
Copy link
Contributor

@Milly Milly commented Sep 20, 2024

Fixes #4324.
Related #13893.


/*
* "indir" values for tab-local options.
* These need to be defined globally, so that the TV_COUNT can be used in the
Copy link
Member

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

Copy link
Contributor Author

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?

Copy link
Member

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.

Copy link
Contributor Author

@Milly Milly Sep 21, 2024

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.

Copy link
Member

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?

Copy link
Contributor Author

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.

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

Successfully merging this pull request may close these issues.

tab-local 'cmdheight' value cannot be queried via gettab[win]var()

3 participants