patch 9.1.0756: missing change from patch v9.1.0754
Problem: missing change from patch v9.1.0754
Solution: use correct width for the actual item
in pum_redraw() (glepnir)
closes: #15786
Signed-off-by: glepnir <glephunter@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
diff --git a/src/popupmenu.c b/src/popupmenu.c
index 010a987..437c6e7 100644
--- a/src/popupmenu.c
+++ b/src/popupmenu.c
@@ -810,7 +810,7 @@
if (j == 2
|| (next_isempty && (j == 1 || (j == 0
&& pum_get_item(idx, order[j + 2]) == NULL)))
- || pum_base_width + n >= pum_width)
+ || basic_width + n >= pum_width)
break;
#ifdef FEAT_RIGHTLEFT
if (pum_rl)