From 877a9582f68b0379ef4b5f34f9568dd23d96d03c Mon Sep 17 00:00:00 2001 From: igor_b Date: Wed, 12 May 2010 21:13:26 +0400 Subject: [PATCH] Ticket #2192: incorrect calculation of autocomplition window width. Signed-off-by: Andrew Borodin --- src/complete.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/complete.c b/src/complete.c index 90e14115d..a7b8a5af0 100644 --- a/src/complete.c +++ b/src/complete.c @@ -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)