mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 12:32:40 +03:00
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:
parent
35798a2d71
commit
5c3f932067
@ -992,8 +992,8 @@ query_callback (Dlg_head *h, dlg_msg_t msg, int parm)
|
||||
sl = nl;
|
||||
}
|
||||
|
||||
if (low > si - &e1->text[start])
|
||||
low = si - &e1->text[start];
|
||||
if (low > si - &e1->text[end - start])
|
||||
low = si - &e1->text[end - start];
|
||||
|
||||
last_text = e1->text;
|
||||
need_redraw = 2;
|
||||
|
Loading…
Reference in New Issue
Block a user