Skip to content
Snippets Groups Projects
Commit 4c1e6261 authored by Bram Moolenaar's avatar Bram Moolenaar
Browse files

updated for version 7.4.072

Problem:    Crash when using Insert mode completion.
Solution:   Avoid going past the end of pum_array. (idea by Fransisco Lopes)
parent 84dbb62f
No related branches found
No related tags found
No related merge requests found
...@@ -282,6 +282,10 @@ pum_redraw() ...@@ -282,6 +282,10 @@ pum_redraw()
int round; int round;
int n; int n;
/* Never display more than we have */
if (pum_first > pum_size - pum_height)
pum_first = pum_size - pum_height;
if (pum_scrollbar) if (pum_scrollbar)
{ {
thumb_heigth = pum_height * pum_height / pum_size; thumb_heigth = pum_height * pum_height / pum_size;
...@@ -672,10 +676,6 @@ pum_set_selected(n, repeat) ...@@ -672,10 +676,6 @@ pum_set_selected(n, repeat)
#endif #endif
} }
/* Never display more than we have */
if (pum_first > pum_size - pum_height)
pum_first = pum_size - pum_height;
if (!resized) if (!resized)
pum_redraw(); pum_redraw();
......
...@@ -738,6 +738,8 @@ static char *(features[]) = ...@@ -738,6 +738,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
72,
/**/ /**/
71, 71,
/**/ /**/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment