0
0
mirror of https://github.com/vim/vim.git synced 2025-07-26 11:04:33 -04:00

patch 9.1.0923: wrong MIN macro in popupmenu.c

Problem:  wrong MIN macro in popupmenu.c (after v9.1.0921)
          (zeertzjq)
Solution: change it to MAX()

Co-authored-by: glepnir <glephunter@gmail.com>
Signed-off-by: glepnir <glephunter@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Christian Brabandt 2024-12-13 12:30:20 +01:00
parent c942f84aad
commit 618c4d36ca
No known key found for this signature in database
GPG Key ID: F3F92DA383FDDE09
2 changed files with 3 additions and 1 deletions

View File

@ -327,7 +327,7 @@ pum_display(
}
}
else if (pum_width > content_width && pum_width > p_pw)
pum_width = MIN(content_width, p_pw);
pum_width = MAX(content_width, p_pw);
}
}

View File

@ -704,6 +704,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
922,
/**/
921,
/**/