patch 9.1.0923: wrong MIN macro in popupmenu.c Commit: https://github.com/vim/vim/commit/618c4d36ca92a62212a37e787c202229ceff8537 Author: Christian Brabandt <c...@256bit.org> Date: Fri Dec 13 12:30:20 2024 +0100
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 <glephun...@gmail.com> Signed-off-by: glepnir <glephun...@gmail.com> Signed-off-by: Christian Brabandt <c...@256bit.org> diff --git a/src/popupmenu.c b/src/popupmenu.c index 1856b6be5..1faabf44f 100644 --- a/src/popupmenu.c +++ b/src/popupmenu.c @@ -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); } } diff --git a/src/version.c b/src/version.c index 1c2398e5c..47ff82639 100644 --- a/src/version.c +++ b/src/version.c @@ -704,6 +704,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 922, /**/ 921, /**/ -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+unsubscr...@googlegroups.com. To view this discussion visit https://groups.google.com/d/msgid/vim_dev/E1tM4nz-00B0iF-5u%40256bit.org.