1
1

Merge branch '2192_completion_window_width'

* 2192_completion_window_width:
  Ticket #2192: incorrect calculation of autocomplition window width.
Этот коммит содержится в:
Andrew Borodin 2010-05-14 15:45:07 +04:00
родитель ca0a75df6c 877a9582f6
Коммит 43401a7613

Просмотреть файл

@ -1199,9 +1199,11 @@ complete_engine (WInput * in, int what_to_do)
WListbox *query_list; WListbox *query_list;
for (p = in->completions + 1; *p != NULL; count++, p++) for (p = in->completions + 1; *p != NULL; count++, p++)
{
i = str_term_width1 (*p); i = str_term_width1 (*p);
if (i > maxlen) if (i > maxlen)
maxlen = i; maxlen = i;
}
start_x = in->widget.x; start_x = in->widget.x;
start_y = in->widget.y; start_y = in->widget.y;
if (start_y - 2 >= count) if (start_y - 2 >= count)