Ticket #2626: special chars are not escaped in autocompletion of filenames.
commitd8340c30da799218947188cf558369a3b0857786
authorAndrew Borodin <aborodin@vmail.ru>
Fri, 7 Oct 2011 09:14:17 +0000 (7 13:14 +0400)
committerAndrew Borodin <aborodin@vmail.ru>
Thu, 14 Feb 2013 10:30:38 +0000 (14 14:30 +0400)
tree1d17d2d3afbfc03eca19ea994e3fdd8d4b3e2b9e
parentd35b4b1f58526613647cc13eb2004ded60e7e462
Ticket #2626: special chars are not escaped in autocompletion of filenames.

Test case:
1. Create a file with name that contains some special chars:
   touch attachment.cgi?id=564208
2. Press F6.
3. Press a. Now only the 'a' letter is in input line.
4. Press Esc Tab Enter.
5a. Input line is filled by 'attachment.cgi?id=564208'...
5b. but 'attachment.cgi\?id=564208' is expected.
6. Add 'patch_' before file name:
   'patch_attachment.cgi?id=564208'.
7. Press Enter.
8a. Result: 'patch_attachment.cgiattachment.cgi?id=564208id=564208'.
8b. Expected result: 'patch_attachment.cgi?id=564208'.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
lib/search/glob.c
lib/widget/input_complete.c