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

Fix set fullscreen not working after upstream Vim merge #1379

Merged

Conversation

ychin
Copy link
Member

@ychin ychin commented Mar 6, 2023

The recent upstream Vim merge (v9.0.1365) contained a lot of refactoring in the option setting code. Handling option setting was now done via a standardized callback, with a struct optset_T. In resolving the upstream merge conflicts, did_set_fullscreen was erroneously using the wrong value from the union (should be using boolean instead of number) which leads to it occasionally giving unpredictable results. Fix the bug.

Note that the bug seems a little unpredictable since it depends on compiler specifics. The only way it was known to trigger was by set diff followed by set fullscreen.

Fix #1378

@ychin ychin added this to the Release 177 milestone Mar 6, 2023
The recent upstream Vim merge (v9.0.1365) contained a lot of refactoring
in the option setting code. Handling option setting was now done via a
standardized callback, with a struct `optset_T`. In resolving the
upstream merge conflicts, `did_set_fullscreen` was erroneously using the
wrong value from the union (should be using boolean instead of number)
which leads to it occasionally giving unpredictable results. Fix the
bug.

Note that the bug seems a little unpredictable since it depends on
compiler specifics. The only way it was known to trigger was by `set
diff` followed by `set fullscreen`.

Fix macvim-dev#1378
@ychin ychin force-pushed the fix-fullscreen-option-broken-upstream-merge branch from b87e695 to 0f7987a Compare March 6, 2023 08:46
@ychin ychin merged commit 87dda95 into macvim-dev:master Mar 6, 2023
@ychin ychin deleted the fix-fullscreen-option-broken-upstream-merge branch March 6, 2023 09:40
tono pushed a commit to tono/macvim that referenced this pull request Mar 21, 2023
…roken-upstream-merge

Fix `set fullscreen` not working after upstream Vim merge
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.

MacVim does not enter full screen
1 participant