src/popupwin.c
win_T *
find_next_popup(int lowest, int handled_flag)
{
    win_T   *wp;
    win_T   *found_wp;
    int	    found_zindex;

    found_zindex = lowest ? INT_MAX : 0;
    found_wp = NULL;
    for (wp = first_popupwin; wp != NULL; wp = wp->w_next)
	if ((wp->w_popup_handled & handled_flag) == 0
		&& (wp->w_popup_flags & POPF_HIDDEN) == 0
		&& (lowest ? wp->w_zindex < found_zindex
		    : wp->w_zindex > found_zindex))
	{
	    found_zindex = wp->w_zindex;
	    found_wp = wp;
	}
    for (wp = curtab->tp_first_popupwin; wp != NULL; wp = wp->w_next)
	if ((wp->w_popup_handled & handled_flag) == 0
		&& (wp->w_popup_flags & POPF_HIDDEN) == 0
		&& (lowest ? wp->w_zindex < found_zindex
		    : wp->w_zindex > found_zindex))
	{
	    found_zindex = wp->w_zindex;
	    found_wp = wp;
	}

    if (found_wp != NULL)
	found_wp->w_popup_handled |= handled_flag;
    return found_wp;
}
/*
 * Find the next visible popup where "handled_flag" is not set.
 * Must have called popup_reset_handled() first.
 * When "lowest" is TRUE find the popup with the lowest zindex, otherwise the
 * popup with the highest zindex.
 */
Find the next visible popup where "handled_flag" is not set.
Must have called popup_reset_handled() first.
When "lowest" is TRUE find the popup with the lowest zindex, otherwise the
popup with the highest zindex.
Find the next visible popup where " handled_flag " is not set . Must have called popup_reset_handled () first . When " lowest " is TRUE find the popup with the lowest zindex otherwise the popup with the highest zindex .
win_T *
find_next_popup(int lowest, int handled_flag)
{
    win_T   *wp;
    win_T   *found_wp;
    int	    found_zindex;
    found_zindex = lowest ? INT_MAX : 0;
    found_wp = NULL;
    for (wp = first_popupwin; wp != NULL; wp = wp->w_next)
	if ((wp->w_popup_handled & handled_flag) == 0
		&& (wp->w_popup_flags & POPF_HIDDEN) == 0
		&& (lowest ? wp->w_zindex < found_zindex
		    : wp->w_zindex > found_zindex))
	{
	    found_zindex = wp->w_zindex;
	    found_wp = wp;
	}
    for (wp = curtab->tp_first_popupwin; wp != NULL; wp = wp->w_next)
	if ((wp->w_popup_handled & handled_flag) == 0
		&& (wp->w_popup_flags & POPF_HIDDEN) == 0
		&& (lowest ? wp->w_zindex < found_zindex
		    : wp->w_zindex > found_zindex))
	{
	    found_zindex = wp->w_zindex;
	    found_wp = wp;
	}
    if (found_wp != NULL)
	found_wp->w_popup_handled |= handled_flag;
    return found_wp;
}
win_T * find_next_popup ( int lowest , int handled_flag ) { win_T * wp ; win_T * found_wp ; int found_zindex ; found_zindex = lowest ? INT_MAX : 0 ; found_wp = NULL ; for ( wp = first_popupwin ; wp != NULL ; wp = wp -> w_next ) if ( ( wp -> w_popup_handled & handled_flag ) == 0 && ( wp -> w_popup_flags & POPF_HIDDEN ) == 0 && ( lowest ? wp -> w_zindex < found_zindex : wp -> w_zindex > found_zindex ) ) { found_zindex = wp -> w_zindex ; found_wp = wp ; } for ( wp = curtab -> tp_first_popupwin ; wp != NULL ; wp = wp -> w_next ) if ( ( wp -> w_popup_handled & handled_flag ) == 0 && ( wp -> w_popup_flags & POPF_HIDDEN ) == 0 && ( lowest ? wp -> w_zindex < found_zindex : wp -> w_zindex > found_zindex ) ) { found_zindex = wp -> w_zindex ; found_wp = wp ; } if ( found_wp != NULL ) found_wp -> w_popup_handled |= handled_flag ; return found_wp ; }
Find the next visible popup where "handled_flag" is not set.
Find the next visible popup where " handled_flag " is not set .