src/popupwin.c
void
popup_check_cursor_pos()
{
    win_T *wp;

    popup_reset_handled(POPUP_HANDLED_3);
    while ((wp = find_next_popup(TRUE, POPUP_HANDLED_3)) != NULL)
	if (wp->w_popup_curwin != NULL
		&& (curwin != wp->w_popup_curwin
		    || curwin->w_cursor.lnum != wp->w_popup_lnum
		    || curwin->w_cursor.col < wp->w_popup_mincol
		    || curwin->w_cursor.col > wp->w_popup_maxcol))
	    popup_close_with_retval(wp, -1);
}
/*
 * Called when the cursor moved: check if any popup needs to be closed if the
 * cursor moved far enough.
 */
Called when the cursor moved: check if any popup needs to be closed if the
cursor moved far enough.
Called when the cursor moved : check if any popup needs to be closed if the cursor moved far enough .
void
popup_check_cursor_pos()
{
    win_T *wp;
    popup_reset_handled(POPUP_HANDLED_3);
    while ((wp = find_next_popup(TRUE, POPUP_HANDLED_3)) != NULL)
	if (wp->w_popup_curwin != NULL
		&& (curwin != wp->w_popup_curwin
		    || curwin->w_cursor.lnum != wp->w_popup_lnum
		    || curwin->w_cursor.col < wp->w_popup_mincol
		    || curwin->w_cursor.col > wp->w_popup_maxcol))
	    popup_close_with_retval(wp, -1);
}
void popup_check_cursor_pos ( ) { win_T * wp ; popup_reset_handled ( POPUP_HANDLED_3 ) ; while ( ( wp = find_next_popup ( TRUE , POPUP_HANDLED_3 ) ) != NULL ) if ( wp -> w_popup_curwin != NULL && ( curwin != wp -> w_popup_curwin || curwin -> w_cursor . lnum != wp -> w_popup_lnum || curwin -> w_cursor . col < wp -> w_popup_mincol || curwin -> w_cursor . col > wp -> w_popup_maxcol ) ) popup_close_with_retval ( wp , -1 ) ; }
Called when the cursor moved: check if any popup needs to be closed if the
 cursor moved far enough.
Called when the cursor moved : check if any popup needs to be closed if the cursor moved far enough .