src/popupwin.c
static int
popup_need_position_adjust(win_T *wp)
{
    if (wp->w_popup_last_changedtick != CHANGEDTICK(wp->w_buffer))
	return TRUE;
    if (win_valid(wp->w_popup_prop_win))
	return wp->w_popup_prop_changedtick
				!= CHANGEDTICK(wp->w_popup_prop_win->w_buffer)
		|| wp->w_popup_prop_topline != wp->w_popup_prop_win->w_topline
		|| ((wp->w_popup_flags & POPF_CURSORLINE)
			&& wp->w_cursor.lnum != wp->w_popup_last_curline);
    return FALSE;
}
/*
 * Return TRUE if popup_adjust_position() needs to be called for "wp".
 * That is when the buffer in the popup was changed, or the popup is following
 * a textprop and the referenced buffer was changed.
 * Or when the cursor line changed and "cursorline" is set.
 */
Return TRUE if popup_adjust_position() needs to be called for "wp".
That is when the buffer in the popup was changed, or the popup is following
a textprop and the referenced buffer was changed.
Or when the cursor line changed and "cursorline" is set.
Return TRUE if popup_adjust_position () needs to be called for " wp " . That is when the buffer in the popup was changed or the popup is following a textprop and the referenced buffer was changed . Or when the cursor line changed and " cursorline " is set .
static int
popup_need_position_adjust(win_T *wp)
{
    if (wp->w_popup_last_changedtick != CHANGEDTICK(wp->w_buffer))
	return TRUE;
    if (win_valid(wp->w_popup_prop_win))
	return wp->w_popup_prop_changedtick
				!= CHANGEDTICK(wp->w_popup_prop_win->w_buffer)
		|| wp->w_popup_prop_topline != wp->w_popup_prop_win->w_topline
		|| ((wp->w_popup_flags & POPF_CURSORLINE)
			&& wp->w_cursor.lnum != wp->w_popup_last_curline);
    return FALSE;
}
static int popup_need_position_adjust ( win_T * wp ) { if ( wp -> w_popup_last_changedtick != CHANGEDTICK ( wp -> w_buffer ) ) return TRUE ; if ( win_valid ( wp -> w_popup_prop_win ) ) return wp -> w_popup_prop_changedtick != CHANGEDTICK ( wp -> w_popup_prop_win -> w_buffer ) || wp -> w_popup_prop_topline != wp -> w_popup_prop_win -> w_topline || ( ( wp -> w_popup_flags & POPF_CURSORLINE ) && wp -> w_cursor . lnum != wp -> w_popup_last_curline ) ; return FALSE ; }
Return TRUE if popup_adjust_position() needs to be called for "wp".
Return TRUE if popup_adjust_position () needs to be called for " wp " .