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: screenchar works when multigrid enabled #29316

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

TwIStOy
Copy link

@TwIStOy TwIStOy commented Jun 13, 2024

fix #29135

@TwIStOy TwIStOy marked this pull request as draft June 13, 2024 11:37
@TwIStOy TwIStOy marked this pull request as ready for review June 14, 2024 04:05
@@ -803,6 +803,7 @@ void ui_ext_win_position(win_T *wp, bool validate)
if (!wp->w_floating) {
ui_call_win_pos(wp->w_grid_alloc.handle, wp->handle, wp->w_winrow,
wp->w_wincol, wp->w_width, wp->w_height);
ui_put_grid(&wp->w_grid_alloc, false);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this should be done. in multigrid mode, there is no guarantee that the grid size of the specific windows will match the space in default_grid (that's the entire point of ext_multigrid mode), so things will get weird in other ways. Also it breaks an abstraction boundary to ui_compositor.c which is not something I like for a edge case unrelated to ordinary use.

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.

screenchar()/screenstring() with multigrid
2 participants