0
0
mirror of https://github.com/vim/vim.git synced 2025-11-10 10:47:23 -05:00

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>
This commit is contained in:
glepnir
2024-10-03 11:01:19 +02:00
committed by Christian Brabandt
parent 2982299699
commit a6d9e3c4e0
4 changed files with 38 additions and 2 deletions

View File

@@ -810,7 +810,7 @@ pum_redraw(void)
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)