src/popupwin.c
void
popup_close(int id)
{
    win_T	*wp;
    tabpage_T	*tp;
    win_T	*prev = NULL;

    // go through global popups
    for (wp = first_popupwin; wp != NULL; prev = wp, wp = wp->w_next)
	if (wp->w_id == id)
	{
	    if (prev == NULL)
		first_popupwin = wp->w_next;
	    else
		prev->w_next = wp->w_next;
	    popup_free(wp);
	    return;
	}

    // go through tab-local popups
    FOR_ALL_TABPAGES(tp)
	popup_close_tabpage(tp, id);
}
/*
 * Close a popup window by Window-id.
 * Does not invoke the callback.
 */
Close a popup window by Window-id.
Does not invoke the callback.
Close a popup window by Window - id . Does not invoke the callback .
void
popup_close(int id)
{
    win_T	*wp;
    tabpage_T	*tp;
    win_T	*prev = NULL;
    for (wp = first_popupwin; wp != NULL; prev = wp, wp = wp->w_next)
	if (wp->w_id == id)
	{
	    if (prev == NULL)
		first_popupwin = wp->w_next;
	    else
		prev->w_next = wp->w_next;
	    popup_free(wp);
	    return;
	}
    FOR_ALL_TABPAGES(tp)
	popup_close_tabpage(tp, id);
}
void popup_close ( int id ) { win_T * wp ; tabpage_T * tp ; win_T * prev = NULL ; for ( wp = first_popupwin ; wp != NULL ; prev = wp , wp = wp -> w_next ) if ( wp -> w_id == id ) { if ( prev == NULL ) first_popupwin = wp -> w_next ; else prev -> w_next = wp -> w_next ; popup_free ( wp ) ; return ; } FOR_ALL_TABPAGES ( tp ) popup_close_tabpage ( tp , id ) ; }
Close a popup window by Window-id.
Close a popup window by Window - id .
// go through global popups // go through tab-local popups