Merge branch '2192_completion_window_width'

* 2192_completion_window_width:
  Ticket #2192: incorrect calculation of autocomplition window width.
This commit is contained in:
Andrew Borodin 2010-05-14 15:45:07 +04:00
commit 43401a7613

View File

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