0
0
mirror of https://github.com/vim/vim.git synced 2025-09-29 04:34:16 -04:00

updated for version 7.0217

This commit is contained in:
Bram Moolenaar
2006-03-07 22:38:47 +00:00
parent a203182302
commit 1f35bf9cab
22 changed files with 283 additions and 180 deletions

View File

@@ -40,7 +40,8 @@ static int pum_col; /* left column of pum */
pum_display(array, size, selected, row, height, col)
pumitem_T *array;
int size;
int selected; /* index of initially selected item */
int selected; /* index of initially selected item, none if
out of range */
int row;
int height;
int col;
@@ -256,7 +257,7 @@ pum_get_selected()
/*
* Set the index of the currently selected item. The menu will scroll when
* necessary.
* necessary. When "n" is out of range don't scroll.
*/
void
pum_set_selected(n)
@@ -264,7 +265,7 @@ pum_set_selected(n)
{
pum_selected = n;
if (pum_selected >= 0)
if (pum_selected >= 0 && pum_selected < pum_size)
{
if (pum_first > pum_selected - 4)
{