mirror of
https://github.com/MidnightCommander/mc
synced 2025-03-29 03:02:57 +03:00
Merge branch '2192_completion_window_width'
* 2192_completion_window_width: Ticket #2192: incorrect calculation of autocomplition window width.
This commit is contained in:
commit
43401a7613
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user