src/popupwin.c
static int
check_popup_unhidden(win_T *wp)
{
    if (wp->w_popup_prop_type > 0 && win_valid(wp->w_popup_prop_win))
    {
	textprop_T  prop;
	linenr_T    lnum;

	if (find_visible_prop(wp->w_popup_prop_win,
		    wp->w_popup_prop_type, wp->w_popup_prop_id,
							   &prop, &lnum) == OK)
	{
	    wp->w_popup_flags &= ~POPF_HIDDEN;
	    wp->w_popup_prop_topline = 0; // force repositioning
	    return TRUE;
	}
    }
    return FALSE;
}
/*
 * Only called when popup window "wp" is hidden: If the window is positioned
 * next to a text property, and it is now visible, then  unhide the popup.
 * We don't check if visible popups become hidden, that is done in
 * popup_adjust_position().
 * Return TRUE if the popup became unhidden.
 */
Only called when popup window "wp" is hidden: If the window is positioned
next to a text property, and it is now visible, then  unhide the popup.
We don't check if visible popups become hidden, that is done in
popup_adjust_position().
Return TRUE if the popup became unhidden.
Only called when popup window " wp " is hidden : If the window is positioned next to a text property and it is now visible then unhide the popup . We don ' t check if visible popups become hidden that is done in popup_adjust_position () . Return TRUE if the popup became unhidden .
static int
check_popup_unhidden(win_T *wp)
{
    if (wp->w_popup_prop_type > 0 && win_valid(wp->w_popup_prop_win))
    {
	textprop_T  prop;
	linenr_T    lnum;
	if (find_visible_prop(wp->w_popup_prop_win,
		    wp->w_popup_prop_type, wp->w_popup_prop_id,
							   &prop, &lnum) == OK)
	{
	    wp->w_popup_flags &= ~POPF_HIDDEN;
	    wp->w_popup_prop_topline = 0; 
	    return TRUE;
	}
    }
    return FALSE;
}
static int check_popup_unhidden ( win_T * wp ) { if ( wp -> w_popup_prop_type > 0 && win_valid ( wp -> w_popup_prop_win ) ) { textprop_T prop ; linenr_T lnum ; if ( find_visible_prop ( wp -> w_popup_prop_win , wp -> w_popup_prop_type , wp -> w_popup_prop_id , & prop , & lnum ) == OK ) { wp -> w_popup_flags &= ~ POPF_HIDDEN ; wp -> w_popup_prop_topline = 0 ; return TRUE ; } } return FALSE ; }
Only called when popup window "wp" is hidden: If the window is positioned
 next to a text property, and it is now visible, then  unhide the popup.
Only called when popup window " wp " is hidden : If the window is positioned next to a text property and it is now visible then unhide the popup .
// force repositioning