Commit Briefs
kamiftp: improve readline completions
Now `ls pref<TAB>' will complete all the paths starting with `pref' in the current directory; before it was only working for sub-directories.
kamiftp: refactor ftp_remote_files
no functional changes
kamiftp: ensure compl_add_entry leaves a NULL terminator
while here also rearrange a bit the compl_state_reset/compl_add_entry dance and do the allocations only in the latter.
kamiftp: add completions
This adds completions when building with readline. kamiftp now completes command name, special arguments (on/off), local paths (default readline behaviour) and remote paths. This also tells readline how to handle quotes and escape characters.