commit 1386d36e7687edb1b65e338045eaff37ab32d582
parent 8a0b203875610ce61539492c5aceb9c72e959806
Author: zeertzjq <zeertzjq@outlook.com>
Date: Fri, 13 Dec 2024 21:33:06 +0800
vim-patch:9.1.092: vim-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()
https://github.com/vim/vim/commit/618c4d36ca92a62212a37e787c202229ceff8537
Co-authored-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: glepnir <glephunter@gmail.com>
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/nvim/popupmenu.c b/src/nvim/popupmenu.c
@@ -377,7 +377,7 @@ void pum_display(pumitem_T *array, int size, int selected, bool array_changed, i
}
}
} else if (pum_width > content_width && pum_width > p_pw) {
- pum_width = MIN(content_width, (int)p_pw);
+ pum_width = MAX(content_width, (int)p_pw);
}
}
} else if (max_col - min_col < def_width) {