Ticket #1429 (segfault on path completion)

Fixed bug with non-valid length calculation of completion text

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
This commit is contained in:
Slava Zanko 2009-07-30 21:50:18 +03:00
parent 35798a2d71
commit 5c3f932067

View File

@ -992,8 +992,8 @@ query_callback (Dlg_head *h, dlg_msg_t msg, int parm)
sl = nl; sl = nl;
} }
if (low > si - &e1->text[start]) if (low > si - &e1->text[end - start])
low = si - &e1->text[start]; low = si - &e1->text[end - start];
last_text = e1->text; last_text = e1->text;
need_redraw = 2; need_redraw = 2;