Lines Matching refs:pum_height

22 static int pum_height;			// nr of displayed pum items  variable
142 pum_height = size; in pum_display()
144 pum_height = PUM_DEF_HEIGHT; in pum_display()
145 if (p_ph > 0 && pum_height > p_ph) in pum_display()
146 pum_height = p_ph; in pum_display()
150 if (pum_win_row + 2 >= below_row - pum_height in pum_display()
164 pum_height = size; in pum_display()
169 pum_height = pum_win_row - context_lines; in pum_display()
171 if (p_ph > 0 && pum_height > p_ph) in pum_display()
173 pum_row += pum_height - p_ph; in pum_display()
174 pum_height = p_ph; in pum_display()
192 pum_height = below_row - pum_row; in pum_display()
194 pum_height = size; in pum_display()
195 if (p_ph > 0 && pum_height > p_ph) in pum_display()
196 pum_height = p_ph; in pum_display()
200 if (pum_height < 1 || (pum_height == 1 && size > 1)) in pum_display()
205 if (pvwin != NULL && pum_row < above_row && pum_height > above_row) in pum_display()
208 pum_height = pum_win_row - above_row; in pum_display()
227 if (pum_height < size) in pum_display()
389 && row < pum_row + pum_height in pum_under_menu()
428 if (pum_first > pum_size - pum_height) in pum_redraw()
429 pum_first = pum_size - pum_height; in pum_redraw()
433 thumb_height = pum_height * pum_height / pum_size; in pum_redraw()
436 thumb_pos = (pum_first * (pum_height - thumb_height) in pum_redraw()
437 + (pum_size - pum_height) / 2) in pum_redraw()
438 / (pum_size - pum_height); in pum_redraw()
447 for (i = 0; i < pum_height; ++i) in pum_redraw()
684 row += pum_height; in pum_position_info_popup()
719 int context = pum_height / 2; in pum_set_selected()
737 pum_first -= pum_height - 2; in pum_set_selected()
746 else if (pum_first < pum_selected - pum_height + 5) in pum_set_selected()
750 if (pum_first < pum_selected - pum_height + 1 + 2) in pum_set_selected()
752 pum_first += pum_height - 2; in pum_set_selected()
753 if (pum_first < pum_selected - pum_height + 1) in pum_set_selected()
754 pum_first = pum_selected - pum_height + 1; in pum_set_selected()
757 pum_first = pum_selected - pum_height + 1; in pum_set_selected()
763 if (pum_height > 2) in pum_set_selected()
772 else if (pum_first < pum_selected + context - pum_height + 1) in pum_set_selected()
775 pum_first = pum_selected + context - pum_height + 1; in pum_set_selected()
779 if (pum_first > pum_size - pum_height) in pum_set_selected()
780 pum_first = pum_size - pum_height; in pum_set_selected()
1122 return pum_height; in pum_get_height()
1134 (void)dict_add_number(dict, "height", pum_height); in pum_set_event_info()
1152 if (pum_height > Rows - pum_row) in pum_position_at_mouse()
1153 pum_height = Rows - pum_row; in pum_position_at_mouse()
1161 pum_height += pum_row; in pum_position_at_mouse()
1396 pum_height = balloon_arraysize; in ui_post_balloon()
1507 pum_height = pum_size; in pum_show_popupmenu()