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

Skip to content

patch 9.2.0083 missing FEAT_MENU guard for w_winbar_height in window.c #19556

@char101

Description

@char101

Steps to reproduce

These lines should be wrapped in #ifdef FEAT_MENU since w_winbar_height is wrapped inside one.

vim/src/window.c

Lines 7660 to 7676 in 327e0e3

if (actual_change)
{
wp->w_status_height = stlo_mh;
if (wp->w_status_height > frp->fr_height - wp->w_winbar_height
- p_wmh)
{
wp->w_status_height = frp->fr_height - wp->w_winbar_height
- p_wmh;
}
win_new_height(wp, frp->fr_height - wp->w_status_height
- wp->w_winbar_height);
}
else
{
if (frp->fr_height - wp->w_winbar_height - p_wmh < stlh_effort)
stlh_effort = frp->fr_height - wp->w_winbar_height - p_wmh;
}

Expected behaviour

Vim compiled sucessfully without FEAT_MENU

Version of Vim

9.2.0096

Environment

Windows

Logs and stack traces

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions